summaryrefslogtreecommitdiff
path: root/libs/binder/Static.cpp
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2014-11-11 12:22:53 -0800
committer Dianne Hackborn <hackbod@google.com> 2014-11-11 16:23:04 -0800
commit7e790af756d7891cb1cf1374bb283a8fbcbe6b49 (patch)
treeaa12e039c68c41b88b76543331ccdcd5d5fcbba8 /libs/binder/Static.cpp
parent37878b1e57ee25629f0d9aff5edf599afcc8c6eb (diff)
Add tracking of parcel memory allocations.
Change-Id: I76ffed0e69ccfe70e87d98646f11d4de7c3fd980
Diffstat (limited to 'libs/binder/Static.cpp')
-rw-r--r--libs/binder/Static.cpp8
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;