OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 syntax = "proto2"; | |
6 | |
7 option optimize_for = LITE_RUNTIME; | |
8 | |
9 package metrics; | |
10 | |
11 import "perf_data.proto"; | |
12 | |
13 // Protocol buffer for collected profiling data. | |
14 // Contains the parameters and data from a single profile collection event. | |
15 | |
16 // Next tag: 6 | |
17 message ProfileCollection { | |
18 // Indicates the event that triggered this collection. | |
19 enum TriggerType { | |
20 UNKNOWN = 0; | |
21 PERIODIC = 1; // Collect at a random point within periodic intervals. | |
22 } | |
23 optional TriggerType trigger_type = 1; | |
24 | |
25 // The type of profile data that was collected. | |
26 enum ProfileType { | |
27 PERF = 0; // Perf profile. | |
tipp
2014/04/08 21:19:41
Make UNKNOWN=0 and PERF=1
Simon Que
2014/04/08 22:57:44
When would we use the unknown enum? We can always
tipp
2014/04/08 23:31:46
#5 from http://go/protodosdonts
| |
28 } | |
29 optional ProfileType profile_type = 2; | |
30 | |
31 // The actual perf data that was collected, if this is a perf profile. | |
32 optional PerfDataProto perf_data = 3; | |
33 | |
34 // Time after system boot when the collection took place. | |
35 optional int64 ms_after_boot = 4; | |
36 | |
37 // Time after last login when the collection took place. | |
38 optional int64 ms_after_login = 5; | |
39 | |
40 // For interval-based collections, the length of each interval. | |
41 optional int64 interval_period_ms = 6; | |
42 } | |
OLD | NEW |