Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: components/metrics/public/interfaces/single_value_histograms.mojom

Issue 2687583002: Add support for single sample metrics. (Closed)
Patch Set: Use thread local storage. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 SingleValueHistogramsProvider {
8 // Returns a SingleValueHistogram for a counts type histogram.
9 //
10 // A single value histogram 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 AcquireSingleValueCountsHistogram(string name, int32 min, int32 max,
17 uint32 bucket_count,
18 SingleValueCountsHistogram& request);
19 };
20
21 interface SingleValueCountsHistogram {
22 SetSample(int32 sample);
23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698