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 29 matching lines...) Expand all Loading... | |
| 40 IO_THREAD = 6; | 40 IO_THREAD = 6; |
| 41 DB_THREAD = 7; | 41 DB_THREAD = 7; |
| 42 | 42 |
| 43 // GPU process thread. | 43 // GPU process thread. |
| 44 GPU_MAIN_THREAD = 8; | 44 GPU_MAIN_THREAD = 8; |
| 45 | 45 |
| 46 // Renderer process threads. | 46 // Renderer process threads. |
| 47 RENDER_THREAD = 9; | 47 RENDER_THREAD = 9; |
| 48 UTILITY_THREAD = 10; | 48 UTILITY_THREAD = 10; |
| 49 } | 49 } |
| 50 | |
| 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 | |
| 53 // the order defined here so it's fine to add new ones to further segregrate | |
| 54 // the lifetime of a process. | |
| 55 enum ProcessPhase { | |
| 56 MAIN_LOOP_START = 0; | |
| 57 MAIN_NAVIGATION_START = 1; | |
| 58 FIRST_NONEMPTY_PAINT = 2; | |
| 59 FIRST_CONTENTFUL_PAINT = 3; | |
| 60 | |
| 61 SHUTDOWN_START = 4; | |
| 62 } | |
| 63 | |
| 64 // Process activities. These are actions that start and end, likely many | |
| 65 // times, throughout the lifetime of a process. | |
| 66 enum ProcessActivity { | |
| 67 COLLECTING_METRICS = 0; | |
| 68 WRITING_PROFILES_STATE = 1; | |
| 69 } | |
|
Alexei Svitkine (slow)
2016/11/07 23:22:07
I'm not super convinced of the utility of these, b
bcwhite
2016/11/08 01:02:36
Yeah, we should talk face-to-face quickly. It's b
Alexei Svitkine (slow)
2016/11/14 18:26:39
Per offline discussion, we agreed to land the phas
bcwhite
2016/11/16 18:27:44
Done.
| |
| OLD | NEW |