Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Unified Diff: skia/ext/skia_trace_memory_dump_impl.cc

Issue 1780053003: DO NOT COMMIT: Heap profiler for Skia (sk_malloc) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/skia_memory_dump_provider.cc ('k') | tools/perf/benchmarks/memory_infra.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_trace_memory_dump_impl.cc
diff --git a/skia/ext/skia_trace_memory_dump_impl.cc b/skia/ext/skia_trace_memory_dump_impl.cc
index b7784e722ff22be951893cf6d2234ee243983d3a..97b2549632a3c2d25d9d80797f8e9b858586e3c0 100644
--- a/skia/ext/skia_trace_memory_dump_impl.cc
+++ b/skia/ext/skia_trace_memory_dump_impl.cc
@@ -13,6 +13,7 @@ namespace skia {
namespace {
const char kMallocBackingType[] = "malloc";
+const char kSkMallocBackingType[] = "skia/sk_malloc";
}
SkiaTraceMemoryDumpImpl::SkiaTraceMemoryDumpImpl(
@@ -53,6 +54,9 @@ void SkiaTraceMemoryDumpImpl::setMemoryBacking(const char* dumpName,
process_memory_dump_->AddSuballocation(dump->guid(),
system_allocator_name);
}
+ } else if (strcmp(backingType, kSkMallocBackingType) == 0) {
+ auto dump = process_memory_dump_->GetOrCreateAllocatorDump(dumpName);
+ process_memory_dump_->AddSuballocation(dump->guid(), backingType);
} else {
NOTREACHED();
}
« no previous file with comments | « skia/ext/skia_memory_dump_provider.cc ('k') | tools/perf/benchmarks/memory_infra.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698