diff options
author | John Reck <jreck@google.com> | 2019-10-09 13:41:18 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2019-10-09 13:42:43 -0700 |
commit | 183e1380cef0f63610497abed01e16036a2ea2d4 (patch) | |
tree | 6be42299bdadf7fae5aaf58f787070123c6371aa /libs/hwui/pipeline | |
parent | 3441faa0453907f8713ebccfa33049c2e99e4fe6 (diff) |
Improve dumping of display list memory usage
The first step of improving is measuring. So measure better.
Bug: 138856108
Test: dump
Change-Id: I076b904a1f0dfb209622c76bcb8778a10cd2b7db
Diffstat (limited to 'libs/hwui/pipeline')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaDisplayList.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaDisplayList.h b/libs/hwui/pipeline/skia/SkiaDisplayList.h index e3c3273a726a..cdd00db9afdc 100644 --- a/libs/hwui/pipeline/skia/SkiaDisplayList.h +++ b/libs/hwui/pipeline/skia/SkiaDisplayList.h @@ -47,6 +47,7 @@ class FunctorDrawable; class SkiaDisplayList { public: size_t getUsedSize() { return allocator.usedSize() + mDisplayList.usedSize(); } + size_t getAllocatedSize() { return allocator.allocatedSize() + mDisplayList.allocatedSize(); } ~SkiaDisplayList() { /* Given that we are using a LinearStdAllocator to store some of the |