Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 option java_outer_classname = "ExecutionContextProtos"; | 8 option java_outer_classname = "ExecutionContextProtos"; |
| 9 option java_package = "org.chromium.components.metrics"; | 9 option java_package = "org.chromium.components.metrics"; |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 RENDER_THREAD = 9; | 47 RENDER_THREAD = 9; |
| 48 UTILITY_THREAD = 10; | 48 UTILITY_THREAD = 10; |
| 49 } | 49 } |
| 50 | 50 |
| 51 // Process phases, or where in the lifetime of the process it is such as | 51 // Process phases, or where in the lifetime of the process it is such as |
| 52 // startup, normal operation, shutdown, etc. These don't necessarily occur in | 52 // startup, normal operation, shutdown, etc. These don't necessarily occur in |
| 53 // the order defined here so it's fine to add new ones to further segregrate | 53 // the order defined here so it's fine to add new ones to further segregrate |
| 54 // the lifetime of a process. | 54 // the lifetime of a process. |
| 55 enum ProcessPhase { | 55 enum ProcessPhase { |
| 56 // The browser's main message loop has been started. | 56 // The browser's main message loop has been started. |
| 57 // Based on histogram Startup.BrowserMainRunnerImplInitializeStep2Time. | 57 // Based on histogram Startup.BrowserMainRunnerImplInitializeStep1Time. |
|
Mike Wittman
2016/12/01 16:40:33
This should be based on Startup.BrowserMessageLoop
bcwhite
2016/12/01 17:59:54
Done.
| |
| 58 MAIN_LOOP_START = 0; | 58 MAIN_LOOP_START = 0; |
| 59 | 59 |
| 60 // The beginning of navigation in the first web contents' main frame. | 60 // The beginning of navigation in the first web contents' main frame. |
| 61 // Based on histogram Startup.FirstWebContents.MainNavigationStart. | 61 // Based on histogram Startup.FirstWebContents.MainNavigationStart. |
| 62 MAIN_NAVIGATION_START = 1; | 62 MAIN_NAVIGATION_START = 1; |
| 63 | 63 |
| 64 // The navigation is committed (first bytes received) in the first web | 64 // The navigation is committed (first bytes received) in the first web |
| 65 // contents' main frame. | 65 // contents' main frame. |
| 66 // Based on histogram Startup.FirstWebContents.MainNavigationFinished. | 66 // Based on histogram Startup.FirstWebContents.MainNavigationFinished. |
| 67 MAIN_NAVIGATION_FINISHED = 2; | 67 MAIN_NAVIGATION_FINISHED = 2; |
| 68 | 68 |
| 69 // First non-empty paint of the first web contents. | 69 // First non-empty paint of the first web contents. |
| 70 // Based on histogram Startup.FirstWebContents.NonEmptyPaint2. | 70 // Based on histogram Startup.FirstWebContents.NonEmptyPaint2. |
| 71 FIRST_NONEMPTY_PAINT = 3; | 71 FIRST_NONEMPTY_PAINT = 3; |
| 72 | 72 |
| 73 // Process shutdown has begun. | 73 // Process shutdown has begun. |
| 74 SHUTDOWN_START = 4; | 74 SHUTDOWN_START = 4; |
| 75 } | 75 } |
| OLD | NEW |