Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 module metrics.mojom; | |
| 6 | |
| 7 interface SingleSampleMetricsProvider { | |
|
Alexei Svitkine (slow)
2017/05/03 21:18:48
Add a comment mentioning to see single_sample_metr
DaleCurtis
2017/05/03 21:37:51
Done.
| |
| 8 // Returns a SingleSampleMetric. | |
| 9 // | |
| 10 // A single sample metric only reports its sample once at destruction time. | |
| 11 // The sample may be changed prior to destruction using the SetSample() method | |
| 12 // as many times as desired. | |
| 13 // | |
| 14 // See base/metrics/histograms.h for parameter definitions. |request| is the | |
| 15 // returned histogram. | |
| 16 AcquireSingleSampleMetric(string name, int32 min, int32 max, | |
|
Alexei Svitkine (slow)
2017/05/03 21:18:47
Nit: histogram_name
DaleCurtis
2017/05/03 21:37:51
Done.
| |
| 17 uint32 bucket_count, int32 flags, | |
| 18 SingleSampleMetric& request); | |
| 19 }; | |
| 20 | |
| 21 interface SingleSampleMetric { | |
| 22 SetSample(int32 sample); | |
| 23 }; | |
| OLD | NEW |