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_STARTED = 0; | |
| 57 FIRST_NON_EMPTY_PAINT = 1; | |
| 58 } | |
| 59 | |
| 60 // Process activities. These are actions that start and end, likely many | |
| 61 // times, throughout the lifetime of a process. | |
| 62 enum ProcessActivity { | |
| 63 METRICS_COLLECTION = 0; | |
|
Mike Wittman
2016/11/02 21:44:04
What's the rationale beyond recording metrics coll
bcwhite
2016/11/03 18:29:50
It's not a phase, just a periodic activity that oc
Mike Wittman
2016/11/03 21:15:39
Sorry, "phase" was a typo. So, three things:
1. P
bcwhite
2016/11/03 21:51:10
Ah, well then. I had planned to get this in, then
Mike Wittman
2016/11/03 23:11:03
In general we shouldn't be committing Chrome funct
bcwhite
2016/11/04 14:03:45
Makes perfect sense. I just didn't know about it.
| |
| 64 } | |
| OLD | NEW |