Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Unified Diff: components/metrics/proto/execution_context.proto

Issue 2444143002: Add process lifetime annotations to stack samples. (Closed)
Patch Set: updated proto to pass individual repeated enumeration values Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/metrics/proto/execution_context.proto
diff --git a/components/metrics/proto/execution_context.proto b/components/metrics/proto/execution_context.proto
index 3d8679fe9db2bd8ce69660940c35c7f2416e434a..9076a3d62f39acdd5c0bcbae2ef1b1888d2f9cda 100644
--- a/components/metrics/proto/execution_context.proto
+++ b/components/metrics/proto/execution_context.proto
@@ -47,3 +47,18 @@ enum Thread {
RENDER_THREAD = 9;
UTILITY_THREAD = 10;
}
+
+// Process phases, or where in the lifetime of the process it is such as
+// startup, normal operation, shutdown, etc. These don't necessarily occur in
+// the order defined here so it's fine to add new ones to further segregrate
+// the lifetime of a process.
+enum ProcessPhase {
+ MAIN_LOOP_STARTED = 0;
+ FIRST_NON_EMPTY_PAINT = 1;
+}
+
+// Process activities. These are actions that start and end, likely many
+// times, throughout the lifetime of a process.
+enum ProcessActivity {
+ 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.
+}

Powered by Google App Engine
This is Rietveld 408576698