Refactor android test results logging.
[chromium-blink-merge.git] / ppapi / api / private / ppb_uma_private.idl
blobcdb39080fa2e8629ae06b438d555956cd8d0934d
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
3 * found in the LICENSE file.
4 */
6 /**
7 * This file defines the <code>PPB_UMA_Private</code> interface.
8 */
9 label Chrome {
10 M18 = 0.1
13 /**
14 * Contains functions for plugins to report UMA usage stats.
16 interface PPB_UMA_Private {
17 /**
18 * HistogramCustomTimes is a pointer to a function which records a time
19 * sample given in milliseconds in the histogram given by |name|, possibly
20 * creating the histogram if it does not exist.
22 void HistogramCustomTimes([in] PP_Var name,
23 [in] int64_t sample,
24 [in] int64_t min,
25 [in] int64_t max,
26 [in] uint32_t bucket_count);
28 /**
29 * HistogramCustomCounts is a pointer to a function which records a sample
30 * in the histogram given by |name|, possibly creating the histogram if it
31 * does not exist.
33 void HistogramCustomCounts([in] PP_Var name,
34 [in] int32_t sample,
35 [in] int32_t min,
36 [in] int32_t max,
37 [in] uint32_t bucket_count);
39 /**
40 * HistogramEnumeration is a pointer to a function which records a sample
41 * in the histogram given by |name|, possibly creating the histogram if it
42 * does not exist. The sample represents a value in an enumeration bounded
43 * by |boundary_value|, that is, sample < boundary_value always.
45 void HistogramEnumeration([in] PP_Var name,
46 [in] int32_t sample,
47 [in] int32_t boundary_value);