OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Histogram-collected metrics. | 5 // Histogram-collected metrics. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; |
| 10 |
9 package metrics; | 11 package metrics; |
10 | 12 |
11 // Next tag: 4 | 13 // Next tag: 4 |
12 message HistogramEventProto { | 14 message HistogramEventProto { |
13 // The name of the histogram, hashed. | 15 // The name of the histogram, hashed. |
14 optional fixed64 name_hash = 1; | 16 optional fixed64 name_hash = 1; |
15 | 17 |
16 // The sum of all the sample values. | 18 // The sum of all the sample values. |
17 // Together with the total count of the sample values, this allows us to | 19 // Together with the total count of the sample values, this allows us to |
18 // compute the average value. The count of all sample values is just the sum | 20 // compute the average value. The count of all sample values is just the sum |
(...skipping 16 matching lines...) Expand all Loading... |
35 // which allows the processing code to "vote" on what the correct range | 37 // which allows the processing code to "vote" on what the correct range |
36 // should be for each bucket. This in turn allows us to better identify and | 38 // should be for each bucket. This in turn allows us to better identify and |
37 // discard corrupted reports. | 39 // discard corrupted reports. |
38 optional int32 bucket_index = 3; | 40 optional int32 bucket_index = 3; |
39 | 41 |
40 // The number of entries in this bucket. | 42 // The number of entries in this bucket. |
41 optional int64 count = 4; | 43 optional int64 count = 4; |
42 } | 44 } |
43 repeated Bucket bucket = 3; | 45 repeated Bucket bucket = 3; |
44 } | 46 } |
OLD | NEW |