diff options
author | Mathias Agopian <mathias@google.com> | 2013-03-21 17:12:40 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-03-21 17:12:40 -0700 |
commit | cab25d680e644d962041d05a319e485b96136a5d (patch) | |
tree | 9ce3a3084a90a448bdb67270a1735686b3593d36 /libs/binder/IMemory.cpp | |
parent | 7c1a487ba8c0a3b591a77e2ddcb33ef9bdfaff64 (diff) | |
download | frameworks_native-cab25d680e644d962041d05a319e485b96136a5d.zip frameworks_native-cab25d680e644d962041d05a319e485b96136a5d.tar.gz frameworks_native-cab25d680e644d962041d05a319e485b96136a5d.tar.bz2 |
improved CallStack a bit
- added a ctor that updates and dumps the stack immediately
- added a "logtag" parameter to dump()
Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
Diffstat (limited to 'libs/binder/IMemory.cpp')
-rw-r--r-- | libs/binder/IMemory.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/binder/IMemory.cpp b/libs/binder/IMemory.cpp index cd2451a..07cb41a 100644 --- a/libs/binder/IMemory.cpp +++ b/libs/binder/IMemory.cpp @@ -246,9 +246,7 @@ BpMemoryHeap::~BpMemoryHeap() { if (VERBOSE) { ALOGD("UNMAPPING binder=%p, heap=%p, size=%d, fd=%d", binder.get(), this, mSize, mHeapId); - CallStack stack; - stack.update(); - stack.dump("callstack"); + CallStack stack(LOG_TAG); } munmap(mBase, mSize); |