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

Unified Diff: content/child/web_process_memory_dump_impl.cc

Issue 1324453008: Implement the getRequestDetails api in chrome side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@skia_expose
Patch Set: 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
« no previous file with comments | « no previous file | skia/ext/SkTraceMemoryDump_chrome.h » ('j') | skia/ext/SkTraceMemoryDump_chrome.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4f53cb469f911b03ed4324dbe9bcaebc9eccdd91..3dc1ff06088f97fb1ec244c8edee17057149b2cd 100644
--- a/content/child/web_process_memory_dump_impl.cc
+++ b/content/child/web_process_memory_dump_impl.cc
@@ -144,8 +144,12 @@ void WebProcessMemoryDumpImpl::AddSuballocation(
SkTraceMemoryDump* WebProcessMemoryDumpImpl::CreateDumpAdapterForSkia(
blink::WebMemoryDumpLevelOfDetail levelOfDetail,
const blink::WebString& dumpNamePrefix) {
+ base::trace_event::MemoryDumpArgs args = {
+ levelOfDetail == blink::WebMemoryDumpLevelOfDetail::Low
+ ? base::trace_event::MemoryDumpArgs::LevelOfDetail::LOW
+ : base::trace_event::MemoryDumpArgs::LevelOfDetail::HIGH};
sk_trace_dump_list_.push_back(new skia::SkTraceMemoryDump_Chrome(
- dumpNamePrefix.utf8().data(), process_memory_dump_));
+ dumpNamePrefix.utf8().data(), args, process_memory_dump_));
return sk_trace_dump_list_.back();
}
« no previous file with comments | « no previous file | skia/ext/SkTraceMemoryDump_chrome.h » ('j') | skia/ext/SkTraceMemoryDump_chrome.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698