Home | History | Annotate | Download | only in private
      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  */
      5 
      6 /**
      7  * This file defines the <code>PPB_UMA_Private</code> interface.
      8  */
      9 label Chrome {
     10   M18 = 0.1
     11 };
     12 
     13 /**
     14  * Contains functions for plugins to report UMA usage stats.
     15  */
     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.
     21    */
     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);
     27 
     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.
     32    */
     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);
     38 
     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.
     44    */
     45   void HistogramEnumeration([in] PP_Var name,
     46                             [in] int32_t sample,
     47                             [in] int32_t boundary_value);
     48 };
     49