| 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, |
| 19 int64_t sample, |
| 20 int64_t min, int64_t max, |
| 21 uint32_t bucket_count); |
| 22 |
| 23 /** |
| 24 * HistogramCustomCounts is a pointer to a function which records a sample |
| 25 * in the histogram given by |name|, possibly creating the histogram if it |
| 26 * does not exist. |
| 27 */ |
| 28 void (*HistogramCustomCounts)(struct PP_Var name, |
| 29 int32_t sample, |
| 30 int32_t min, int32_t max, |
| 31 uint32_t bucket_count); |
| 32 |
| 33 /** |
| 34 * HistogramEnumeration is a pointer to a function which records a sample |
| 35 * in the histogram given by |name|, possibly creating the histogram if it |
| 36 * does not exist. The sample represents a value in an enumeration bounded |
| 37 * by |boundary_value|, that is, sample < boundary_value always. |
| 38 */ |
| 39 void (*HistogramEnumeration)(struct PP_Var name, |
| 40 int32_t sample, |
| 41 int32_t boundary_value); |
| 42 }; |
| 43 |
| 44 #endif /* PPAPI_C_PRIVATE_PPB_UMA_PRIVATE_H_ */ |
| OLD | NEW |