diff options
author | simonhatch <simonhatch@chromium.org> | 2015-07-27 13:13:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-27 20:14:05 +0000 |
commit | cebf0f7018da1787d11bed7b9a406e29a84e5d79 (patch) | |
tree | 0431b977c71efa8631c5710bc468113f365e5acf /components/tracing/tracing_messages.h | |
parent | d6fcd9a9efb6c0e41e802b7b8b0a436932d3c9c9 (diff) | |
download | chromium_src-cebf0f7018da1787d11bed7b9a406e29a84e5d79.zip chromium_src-cebf0f7018da1787d11bed7b9a406e29a84e5d79.tar.gz chromium_src-cebf0f7018da1787d11bed7b9a406e29a84e5d79.tar.bz2 |
Slow Reports - Add message filter to trigger background traces from child processes.
At the moment, we want to trigger background traces from UMA callbacks, but you can only set a callback in the same process. This CL adds a message filter for the background tracing manager, which allows it to install UMA callbacks in child processes, and trigger background tracing from there.
BUG=504889
Review URL: https://codereview.chromium.org/1243743002
Cr-Commit-Position: refs/heads/master@{#340544}
Diffstat (limited to 'components/tracing/tracing_messages.h')
-rw-r--r-- | components/tracing/tracing_messages.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/tracing/tracing_messages.h b/components/tracing/tracing_messages.h index 88c7834..7750879 100644 --- a/components/tracing/tracing_messages.h +++ b/components/tracing/tracing_messages.h @@ -7,6 +7,7 @@ #include <vector> #include "base/basictypes.h" +#include "base/metrics/histogram.h" #include "base/sync_socket.h" #include "base/trace_event/memory_dump_request_args.h" #include "base/trace_event/trace_event_impl.h" @@ -75,6 +76,13 @@ IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, uint64 /* dump_guid */, bool /* success */) +IPC_MESSAGE_CONTROL2(TracingMsg_SetUMACallback, + std::string /* histogram_name */, + base::HistogramBase::Sample /* histogram_value */) + +IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, + std::string /* histogram_name */) + // Sent everytime when a watch event is matched. IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) @@ -110,3 +118,6 @@ IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, uint64 /* dump_guid */, bool /* success */) + +IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, + std::string /* name */) |