Add support for user actions to the metrics library and the metrics clients.
BUG=10696
TEST=unit tests, tested on the device through metrics_client and inspecting
the uma-events file.
Change-Id: Ie39dd8b5ab968c328993076369a4ba14cb7fcd81
Review URL: http://codereview.chromium.org/6094010
diff --git a/metrics/README b/metrics/README
index 1519648..2ecec5f 100644
--- a/metrics/README
+++ b/metrics/README
@@ -29,19 +29,9 @@
<metrics/metrics_library.h> header file. The file is installed in
$SYSROOT/usr/include/ when the metrics library is built and installed.
-- The API includes two methods:
-
- 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.
-
- Before using these methods, a MetricsLibrary object needs to be constructed
- and initialized through its Init method. See the complete API documentation in
- metrics_library.h under src/platform/metrics/.
+- The API is documented in metrics_library.h under src/platform/metrics/. Before
+ using the API methods, a MetricsLibrary object needs to be constructed and
+ initialized through its Init method.
For more information on the C API see c_metrics_library.h.
@@ -88,9 +78,9 @@
================================================================================
metrics_client is a simple shell command-line utility for sending histogram
-samples. It's installed under /usr/bin on the target platform and uses
-libmetrics to send the data to Chrome. The utility is useful for generating
-metrics from shell scripts.
+samples and user actions. It's installed under /usr/bin on the target platform
+and uses libmetrics to send the data to Chrome. The utility is useful for
+generating metrics from shell scripts.
For usage information and command-line options, run "metrics_client" on the
target platform or look for "Usage:" in metrics_client.cc.