Chromium Code Reviews| 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 INTERVAL = 1; // Collect at a random point within regular intervals. | |
|
tipp
2014/04/04 23:01:37
s/INTERVAL/PERIODIC/
Simon Que
2014/04/04 23:57:08
Done.
| |
| 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. | |
| 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 seconds_after_boot = 4; | |
|
tipp
2014/04/04 23:01:37
seconds are a long time. make all of these millis
Simon Que
2014/04/04 23:57:08
Done.
| |
| 36 | |
| 37 // Time after last login when the collection took place. | |
| 38 optional int64 seconds_after_login = 5; | |
| 39 | |
| 40 // For interval-based collections, the length of each interval. | |
| 41 optional int64 interval_length_seconds = 6; | |
|
tipp
2014/04/04 23:01:37
s/length/period/
Simon Que
2014/04/04 23:57:08
Done.
| |
| 42 } | |
| OLD | NEW |