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

Unified Diff: components/metrics/public/interfaces/call_stack_profile_collector.mojom

Issue 2362493002: Stack sampling profiler: set process and thread information (Closed)
Patch Set: address comments Created 4 years, 3 months 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/public/interfaces/call_stack_profile_collector.mojom
diff --git a/components/metrics/public/interfaces/call_stack_profile_collector.mojom b/components/metrics/public/interfaces/call_stack_profile_collector.mojom
index b138e9088e15cd0b1cd7c5189e97d8f937c891d2..6c8f04216c63b74c5a327ceee279a304335b49f2 100644
--- a/components/metrics/public/interfaces/call_stack_profile_collector.mojom
+++ b/components/metrics/public/interfaces/call_stack_profile_collector.mojom
@@ -26,6 +26,35 @@ struct CallStackProfile {
mojo.common.mojom.TimeDelta sampling_period;
};
+enum Process {
+ UNKNOWN_PROCESS,
+ BROWSER_PROCESS,
+ RENDERER_PROCESS,
+ GPU_PROCESS,
+ UTILITY_PROCESS,
+ ZYGOTE_PROCESS,
+ SANDBOX_HELPER_PROCESS,
+ PPAPI_PLUGIN_PROCESS,
+ PPAPI_BROKER_PROCESS,
+};
+
+enum Thread {
+ UNKNOWN_THREAD,
+
+ UI_THREAD,
+ FILE_THREAD,
+ FILE_USER_BLOCKING_THREAD,
+ PROCESS_LAUNCHER_THREAD,
+ CACHE_THREAD,
+ IO_THREAD,
+ DB_THREAD,
+
+ GPU_MAIN_THREAD,
+
+ RENDER_THREAD,
+ UTILITY_THREAD,
+};
+
enum Trigger {
UNKNOWN,
PROCESS_STARTUP,
@@ -39,6 +68,8 @@ enum SampleOrderingSpec {
};
struct CallStackProfileParams {
+ Process process;
+ Thread thread;
Trigger trigger;
SampleOrderingSpec ordering_spec;
};

Powered by Google App Engine
This is Rietveld 408576698