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