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 | |
11 package metrics; | 9 package metrics; |
12 | 10 |
13 // Next tag: 4 | 11 // Next tag: 4 |
14 message HistogramEventProto { | 12 message HistogramEventProto { |
15 // The name of the histogram, hashed. | 13 // The name of the histogram, hashed. |
16 optional fixed64 name_hash = 1; | 14 optional fixed64 name_hash = 1; |
17 | 15 |
18 // The sum of all the sample values. | 16 // The sum of all the sample values. |
19 // Together with the total count of the sample values, this allows us to | 17 // Together with the total count of the sample values, this allows us to |
20 // compute the average value. The count of all sample values is just the sum | 18 // compute the average value. The count of all sample values is just the sum |
(...skipping 16 matching lines...) Expand all Loading... |
37 // which allows the processing code to "vote" on what the correct range | 35 // which allows the processing code to "vote" on what the correct range |
38 // should be for each bucket. This in turn allows us to better identify and | 36 // should be for each bucket. This in turn allows us to better identify and |
39 // discard corrupted reports. | 37 // discard corrupted reports. |
40 optional int32 bucket_index = 3; | 38 optional int32 bucket_index = 3; |
41 | 39 |
42 // The number of entries in this bucket. | 40 // The number of entries in this bucket. |
43 optional int64 count = 4; | 41 optional int64 count = 4; |
44 } | 42 } |
45 repeated Bucket bucket = 3; | 43 repeated Bucket bucket = 3; |
46 } | 44 } |
OLD | NEW |