diff options
author | 2014-11-11 12:22:53 -0800 | |
---|---|---|
committer | 2014-11-11 16:23:04 -0800 | |
commit | 7e790af756d7891cb1cf1374bb283a8fbcbe6b49 (patch) | |
tree | aa12e039c68c41b88b76543331ccdcd5d5fcbba8 /libs/binder/Static.cpp | |
parent | 37878b1e57ee25629f0d9aff5edf599afcc8c6eb (diff) |
Add tracking of parcel memory allocations.
Change-Id: I76ffed0e69ccfe70e87d98646f11d4de7c3fd980
Diffstat (limited to 'libs/binder/Static.cpp')
-rw-r--r-- | libs/binder/Static.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/binder/Static.cpp b/libs/binder/Static.cpp index 2062692f48..b870c342d7 100644 --- a/libs/binder/Static.cpp +++ b/libs/binder/Static.cpp @@ -90,7 +90,13 @@ public: static LibBinderIPCtStatics gIPCStatics; -// ------------ ServiceManager.cpp +// ------------ Parcel.cpp + +Mutex gParcelGlobalAllocSizeLock; +size_t gParcelGlobalAllocSize = 0; +size_t gParcelGlobalAllocCount = 0; + +// ------------ IServiceManager.cpp Mutex gDefaultServiceManagerLock; sp<IServiceManager> gDefaultServiceManager; |