OLD | NEW |
(Empty) | |
| 1 // Copyright 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 sample-based profiling data. |
| 14 // Contains the parameters and data from a single profile collection event. |
| 15 |
| 16 // Next tag: 5 |
| 17 message SampledProfile { |
| 18 // Indicates the event that triggered this collection. |
| 19 enum TriggerEvent { |
| 20 UNKNOWN_TRIGGER_EVENT = 0; |
| 21 |
| 22 // The profile was triggered by periodic sampling. Periodically sampled |
| 23 // profiles are collected once per uniformly sized period interval. Within |
| 24 // each interval, the sampled data is collected at a random time. For |
| 25 // example, if the interval is 60 s, then data would be collected at a |
| 26 // random point in each of the intervals [0, 60 s), [60 s, 120 s), etc. |
| 27 PERIODIC_COLLECTION = 1; |
| 28 } |
| 29 optional TriggerEvent trigger_event = 1; |
| 30 |
| 31 // Fields 2-3: Time durations are given in ticks, and represent system uptime |
| 32 // rather than wall time. |
| 33 |
| 34 // Time after system boot when the collection took place, in milliseconds. |
| 35 optional int64 ms_after_boot = 2; |
| 36 |
| 37 // Time after last login when the collection took place, in milliseconds. |
| 38 optional int64 ms_after_login = 3; |
| 39 |
| 40 // The actual perf data that was collected. |
| 41 optional PerfDataProto perf_data = 4; |
| 42 } |
OLD | NEW |