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

Side by Side Diff: components/metrics/proto/sampled_profile.proto

Issue 226273004: Add new SampledProfile protobuf definition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pulled in changes from google3 Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/metrics/proto/chrome_user_metrics_extension.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
Ilya Sherman 2014/05/15 18:56:48 ultra nit: No need for "(c)".
Simon Que 2014/05/15 18:59:57 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // A profile that was collected by sampling.
Ilya Sherman 2014/05/15 18:56:48 nit: This is redundant with lines 15-16. I'd reco
Simon Que 2014/05/15 18:59:57 Done.
6
7 syntax = "proto2";
8
9 option optimize_for = LITE_RUNTIME;
10
11 package metrics;
12
13 import "perf_data.proto";
14
15 // Protocol buffer for collected sample-based profiling data.
16 // Contains the parameters and data from a single profile collection event.
17
18 // Next tag: 5
19 message SampledProfile {
20 // Indicates the event that triggered this collection.
21 enum TriggerEvent {
22 UNKNOWN_TRIGGER_EVENT = 0;
23
24 // The profile was triggered by periodic sampling. Periodically sampled
25 // profiles are collected once per uniformly sized period interval. Within
26 // each interval, the sampled data is collected at a random time. For
27 // example, if the interval is 60 s, then data would be collected at a
28 // random point in each of the intervals [0, 60 s), [60 s, 120 s), etc.
29 PERIODIC_COLLECTION = 1;
30 }
31 optional TriggerEvent trigger_event = 1;
32
33 // Fields 2-3: Time durations are given in ticks, and represent system uptime
34 // rather than wall time.
35
36 // Time after system boot when the collection took place, in milliseconds.
37 optional int64 ms_after_boot = 2;
38
39 // Time after last login when the collection took place, in milliseconds.
40 optional int64 ms_after_login = 3;
41
42 // The actual perf data that was collected.
43 optional PerfDataProto perf_data = 4;
44 }
OLDNEW
« no previous file with comments | « components/metrics/proto/chrome_user_metrics_extension.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698