| Index: c_metrics_library.cc
|
| diff --git a/c_metrics_library.cc b/c_metrics_library.cc
|
| index 91e9ca6e30d597493597f6d03ad9b5d3fbc63728..e97f9ac264059040213a319c8005da45842ea1b8 100644
|
| --- a/c_metrics_library.cc
|
| +++ b/c_metrics_library.cc
|
| @@ -26,8 +26,8 @@ extern "C" void CMetricsLibraryInit(CMetricsLibrary handle) {
|
| }
|
|
|
| extern "C" int CMetricsLibrarySendToUMA(CMetricsLibrary handle,
|
| - const char* name, int sample,
|
| - int min, int max, int nbuckets) {
|
| + const char* name, int sample,
|
| + int min, int max, int nbuckets) {
|
| MetricsLibrary* lib = reinterpret_cast<MetricsLibrary*>(handle);
|
| if (lib == NULL)
|
| return 0;
|
| @@ -35,10 +35,17 @@ extern "C" int CMetricsLibrarySendToUMA(CMetricsLibrary handle,
|
| }
|
|
|
| extern "C" int CMetricsLibrarySendEnumToUMA(CMetricsLibrary handle,
|
| - const char* name, int sample,
|
| - int max) {
|
| + const char* name, int sample,
|
| + int max) {
|
| MetricsLibrary* lib = reinterpret_cast<MetricsLibrary*>(handle);
|
| if (lib == NULL)
|
| return 0;
|
| return lib->SendEnumToUMA(std::string(name), sample, max);
|
| }
|
| +
|
| +extern "C" int CMetricsLibraryAreMetricsEnabled(CMetricsLibrary handle) {
|
| + MetricsLibrary* lib = reinterpret_cast<MetricsLibrary*>(handle);
|
| + if (lib == NULL)
|
| + return 0;
|
| + return lib->AreMetricsEnabled();
|
| +}
|
|
|