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

Unified Diff: content/browser/devtools/protocol/tracing_handler.cc

Issue 1282453002: [tracing] Reland of Throttle rate of heavy dumps and support to request light/heavy dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix IPC messages. Created 5 years, 4 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 | « components/tracing/tracing_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/tracing_handler.cc
diff --git a/content/browser/devtools/protocol/tracing_handler.cc b/content/browser/devtools/protocol/tracing_handler.cc
index 66f54d21de2b8fdaf523f92f73f28fbebd2b845e..fd886972825748b44e33a40a90f28b81841db878 100644
--- a/content/browser/devtools/protocol/tracing_handler.cc
+++ b/content/browser/devtools/protocol/tracing_handler.cc
@@ -159,8 +159,10 @@ Response TracingHandler::RequestMemoryDump(DevToolsCommandId command_id) {
if (!did_initiate_recording_)
return Response::InternalError("Tracing is not started");
+ base::trace_event::MemoryDumpArgs dump_args = {
+ base::trace_event::MemoryDumpArgs::LevelOfDetail::HIGH};
base::trace_event::MemoryDumpManager::GetInstance()->RequestGlobalDump(
- base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED,
+ base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED, dump_args,
base::Bind(&TracingHandler::OnMemoryDumpFinished,
weak_factory_.GetWeakPtr(), command_id));
return Response::OK();
« no previous file with comments | « components/tracing/tracing_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698