Index: content/child/web_process_memory_dump_impl.cc |
diff --git a/content/child/web_process_memory_dump_impl.cc b/content/child/web_process_memory_dump_impl.cc |
index 688b6c1616690ad85a52505759f6414de37044af..4f53cb469f911b03ed4324dbe9bcaebc9eccdd91 100644 |
--- a/content/child/web_process_memory_dump_impl.cc |
+++ b/content/child/web_process_memory_dump_impl.cc |
@@ -6,6 +6,7 @@ |
#include "base/trace_event/process_memory_dump.h" |
#include "content/child/web_memory_allocator_dump_impl.h" |
+#include "skia/ext/SkTraceMemoryDump_chrome.h" |
namespace content { |
@@ -132,4 +133,20 @@ void WebProcessMemoryDumpImpl::AddOwnershipEdge( |
base::trace_event::MemoryAllocatorDumpGuid(target)); |
} |
+void WebProcessMemoryDumpImpl::AddSuballocation( |
+ blink::WebMemoryAllocatorDumpGuid source, |
+ const blink::WebString& targetNodeName) { |
+ process_memory_dump_->AddSuballocation( |
+ base::trace_event::MemoryAllocatorDumpGuid(source), |
+ targetNodeName.utf8()); |
+} |
+ |
+SkTraceMemoryDump* WebProcessMemoryDumpImpl::CreateDumpAdapterForSkia( |
+ blink::WebMemoryDumpLevelOfDetail levelOfDetail, |
Primiano Tucci (use gerrit)
2015/09/09 17:21:36
Wait I realized only now: you don't seem to make a
ssid
2015/09/10 11:08:26
I have uploaded the Cl in skia impl to add one mor
|
+ const blink::WebString& dumpNamePrefix) { |
+ sk_trace_dump_list_.push_back(new skia::SkTraceMemoryDump_Chrome( |
+ dumpNamePrefix.utf8().data(), process_memory_dump_)); |
Primiano Tucci (use gerrit)
2015/09/09 16:16:41
I realized this just now, but would have been a bi
ssid
2015/09/10 11:08:26
hm, okay. Will fix this in next CL. Thanks
|
+ return sk_trace_dump_list_.back(); |
+} |
+ |
} // namespace content |