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

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

Issue 337813002: metrics: Protobuf supports profiling upon restoring session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/proto/sampled_profile.proto
diff --git a/components/metrics/proto/sampled_profile.proto b/components/metrics/proto/sampled_profile.proto
index a694b98b8d4d9cb8191d148d56d0022ccbc97cbe..1b8d66ff44fe6f083b8486d8826a37e304ca0d37 100644
--- a/components/metrics/proto/sampled_profile.proto
+++ b/components/metrics/proto/sampled_profile.proto
@@ -13,7 +13,7 @@ import "perf_data.proto";
// Protocol buffer for collected sample-based profiling data.
// Contains the parameters and data from a single profile collection event.
-// Next tag: 7
+// Next tag: 9
message SampledProfile {
// Indicates the event that triggered this collection.
enum TriggerEvent {
@@ -28,6 +28,9 @@ message SampledProfile {
// The profile was collected upon resume from suspend.
RESUME_FROM_SUSPEND = 2;
+
+ // The profile was collected upon restoring a previous session.
+ RESTORE_SESSION = 3;
}
optional TriggerEvent trigger_event = 1;
@@ -48,6 +51,14 @@ message SampledProfile {
// when |trigger_event| is RESUME_FROM_SUSPEND.
optional int64 ms_after_resume = 6;
+ // Number of tabs restored during a session restore. Only set when
+ // |trigger_event| is RESTORE_SESSION.
+ optional int32 num_tabs_restored = 7;
+
+ // Number of milliseconds after a session restore that a profile was
+ // collected. Only set when |trigger_event| is RESTORE_SESSION.
+ optional int64 ms_after_restore = 8;
+
// The actual perf data that was collected.
optional PerfDataProto perf_data = 4;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698