OLD | NEW |
---|---|
(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 } | |
OLD | NEW |