diff options
author | Yiwei Zhang <zzyiwei@google.com> | 2020-01-27 17:05:50 -0800 |
---|---|---|
committer | Yiwei Zhang <zzyiwei@google.com> | 2020-01-30 18:19:48 -0800 |
commit | 2843c44b36f1595deebde7205e35738c17c7cda7 (patch) | |
tree | 9f4202c5318a67e3a668be344cb7dcc79bdb9f6d /libs/hwui | |
parent | e63ce9f6fc498a97de90ece13cebea5096c5bbf9 (diff) |
Rename HWUI memory atrace counters
"HWUI GPU Memory" feels like total GPU memory used by HWUI, but it's actually
the total of the memory categories not explictly listed. So this change renames
it to "HWUI Misc Memory".
Bug: 147833967
Test: take a systrace
Change-Id: Id6b5f09981e148373dbc4e7f482e3da35740a566
Diffstat (limited to 'libs/hwui')
-rw-r--r-- | libs/hwui/pipeline/skia/ATraceMemoryDump.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/hwui/pipeline/skia/ATraceMemoryDump.cpp b/libs/hwui/pipeline/skia/ATraceMemoryDump.cpp index 551bdc63121d..234f42d79cb7 100644 --- a/libs/hwui/pipeline/skia/ATraceMemoryDump.cpp +++ b/libs/hwui/pipeline/skia/ATraceMemoryDump.cpp @@ -39,14 +39,13 @@ namespace skiapipeline { * ATraceMemoryDump calculates memory category first by looking at the "type" string passed to * dumpStringValue and then by looking at "backingType" passed to setMemoryBacking. * Only GPU Texture memory is tracked separately and everything else is grouped as one - * "GPU Memory" category. + * "Misc Memory" category. */ static std::unordered_map<const char*, const char*> sResourceMap = { {"malloc", "HWUI CPU Memory"}, // taken from setMemoryBacking(backingType) {"gl_texture", "HWUI Texture Memory"}, // taken from setMemoryBacking(backingType) - {"Texture", - "HWUI Texture Memory"}, // taken from dumpStringValue(value, valueName="type") - // Uncomment categories below to split "GPU Memory" into more brackets for debugging. + {"Texture", "HWUI Texture Memory"}, // taken from dumpStringValue(value, valueName="type") + // Uncomment categories below to split "Misc Memory" into more brackets for debugging. /*{"vk_buffer", "vk_buffer"}, {"gl_renderbuffer", "gl_renderbuffer"}, {"gl_buffer", "gl_buffer"}, @@ -169,8 +168,8 @@ void ATraceMemoryDump::resetCurrentCounter(const char* dumpName) { mLastDumpValue = 0; mLastPurgeableDumpValue = INVALID_MEMORY_SIZE; mLastDumpName = dumpName; - // Categories not listed in sResourceMap are reported as "GPU memory" - mCategory = "HWUI GPU Memory"; + // Categories not listed in sResourceMap are reported as "Misc Memory" + mCategory = "HWUI Misc Memory"; } } /* namespace skiapipeline */ |