diff options
author | fdoray <fdoray@chromium.org> | 2015-11-16 12:44:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-16 20:45:35 +0000 |
commit | 443bd11bc8106bea98a89819b7bb1b35d6e5ddf8 (patch) | |
tree | 7f2489e4c4fd9f9a7c95e2674bf2319285036524 /ipc | |
parent | a0883335e0de41b2d490d991e8b11c9298146fe5 (diff) | |
download | chromium_src-443bd11bc8106bea98a89819b7bb1b35d6e5ddf8.zip chromium_src-443bd11bc8106bea98a89819b7bb1b35d6e5ddf8.tar.gz chromium_src-443bd11bc8106bea98a89819b7bb1b35d6e5ddf8.tar.bz2 |
Add UMA metric: Startup.BrowserMainToRendererMain.
This new metric keeps track of the time from BrowserMain() to
RendererMain().
Time is recorded by renderer processes when they enter RendererMain().
This time is sent to the browser through an IPC. The browser records the
first renderer main entry time that it receives and ignores the others.
When the first non-empty paint occurs, the browser computes
Startup.BrowserMainToRendererMain
(First Renderer Main Entry Time - Browser Main Entry Time) and logs it.
We need a renderer->browser IPC because the startup temperature is only
known in the browser (we cannot pass this information with a cmd-line
flag because it is not known yet when the first renderer is launched).
We need to wait until the first non-empty paint to log the metric,
because we don't have any guarantee that both the startup temperature
and the first renderer main entry time are known before that.
BUG=547794
Review URL: https://codereview.chromium.org/1413533008
Cr-Commit-Position: refs/heads/master@{#359904}
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_start.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/ipc_message_start.h b/ipc/ipc_message_start.h index c151c547..82786b5 100644 --- a/ipc/ipc_message_start.h +++ b/ipc/ipc_message_start.h @@ -132,6 +132,7 @@ enum IPCMessageStart { ArcInstanceMsgStart, ArcInstanceHostMsgStart, DistillerMsgStart, + StartupMetricMsgStart, LastIPCMsgStart // Must come last. }; |