| OLD | NEW |
| (Empty) | |
| 1 /* Copyright (c) 2011 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 #ifndef PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ |
| 6 #define PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ |
| 7 |
| 8 #include "ppapi/c/pp_stdint.h" |
| 9 |
| 10 #define PPB_UMA_PRIVATE_INTERFACE "PPB_UMA(Private);0.1" |
| 11 |
| 12 struct PPB_UMA_Private { |
| 13 /** |
| 14 * HistogramCustomTimes is a pointer to a function which records a time |
| 15 * sample given in milliseconds in the histogram given by |name|, possibly |
| 16 * creating the histogram if it does not exist. |
| 17 */ |
| 18 void (*HistogramCustomTimes)(struct PP_Var name, int64_t sample, |
| 19 int64_t min, int64_t max, |
| 20 uint32_t bucket_count); |
| 21 |
| 22 /** |
| 23 * HistogramCustomCounts is a pointer to a function which records a sample |
| 24 * in the histogram given by |name|, possibly creating the histogram if it |
| 25 * does not exist. |
| 26 */ |
| 27 void (*HistogramCustomCounts)(struct PP_Var name, int32_t sample, |
| 28 int32_t min, int32_t max, |
| 29 uint32_t bucket_count); |
| 30 |
| 31 /** |
| 32 * HistogramEnumeration is a pointer to a function which records a sample |
| 33 * in the histogram given by |name|, possibly creating the histogram if it |
| 34 * does not exist. The sample represents a value in an enumeration bounded |
| 35 * by |boundary_value|, that is, sample < boundary_value always. |
| 36 */ |
| 37 void (*HistogramEnumeration)(struct PP_Var name, int32_t sample, |
| 38 int32_t boundary_value); |
| 39 }; |
| 40 |
| 41 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */ |
| OLD | NEW |