Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: src/platform/metrics/README

Issue 2049007: Start transition the metrics library to non-static API. Use gmock in tests. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Break down tests to avoid explicit metrics lib mock checkpoints. Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/metrics/Makefile ('k') | src/platform/metrics/metrics_daemon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/metrics/README
diff --git a/src/platform/metrics/README b/src/platform/metrics/README
index 912af2713f9583899ed99f32524c8f52473d4497..d8f17c4445fc801774fb9e818c2aa43f4b4a191b 100644
--- a/src/platform/metrics/README
+++ b/src/platform/metrics/README
@@ -32,21 +32,26 @@ a module, you need to do the following:
$SYSROOT/usr/include/ when the metrics library is built and
installed.
-- Currently, the API includes two static methods:
+- The API includes two methods:
- bool MetricsLibrary::SendToChrome(const std::string& name, int sample,
- int min, int max, int nbuckets)
+ bool MetricsLibrary::SendToUMA(const std::string& name, int sample,
+ int min, int max, int nbuckets)
sends a sample for a regular (exponential) histogram.
+ bool MetricsLibrary::SendEnumToUMA(const std::string& name, int sample,
+ int max)
+ sends a sample for an enumeration (linear) histogram.
+
+ Currently, the API also includes two deprecated static methods:
+
+ bool MetricsLibrary::SendToChrome(const std::string& name, int sample,
+ int min, int max, int nbuckets)
bool MetricsLibrary::SendEnumToChrome(const std::string& name, int sample,
int max)
- sends a sample for an enumeration (linear) histogram.
- See API documentation in metrics_library.h under
+ See the API documentation in metrics_library.h under
src/platform/metrics/.
- TODO: It might be better to convert the API to a dynamic object.
-
- On the target platform, shortly after the sample is sent it should
be visible in Chrome through "about:histograms".
« no previous file with comments | « src/platform/metrics/Makefile ('k') | src/platform/metrics/metrics_daemon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698