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.
7 * This file defines the <code>PPB_UMA_Private</code> interface.
14 * Contains functions for plugins to report UMA usage stats.
16 interface PPB_UMA_Private {
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,
26 [in] uint32_t bucket_count);
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
33 void HistogramCustomCounts([in] PP_Var name,
37 [in] uint32_t bucket_count);
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,
47 [in] int32_t boundary_value);