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

Unified Diff: content/child/web_process_memory_dump_impl.cc

Issue 1308523004: Implement GetSkiaTraceMemoryDump and AddSuballocation on chrome blink platform impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache_move
Patch Set: $Rebase. Created 5 years, 3 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
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
« content/child/web_process_memory_dump_impl.h ('K') | « content/child/web_process_memory_dump_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698