platform_system_core/metricsd/serialization
James Hawkins 5f6460081c metrics: Add an option to metrics_client to dump the logs cache.
The format of the metrics dump is rudimentary just yet. Here is an example:

  Metrics from /data/misc/metrics/uma-events

  name: hello     type: USER_ACTION
  name: world     type: USER_ACTION

This required the following changes:
* Added -d option to metrics_client
* Refactored file handling in SerializationUtils
 - Factored out file opening and log parsing into helper methods
 - Added ReadMetricsFromFile which is read-only so does not truncate the file

Change-Id: I6032d74242c79c678ec42a14e78fccc54e7af455
2015-09-09 15:23:24 -07:00
..
metric_sample.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metric_sample.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
serialization_utils.cc metrics: Add an option to metrics_client to dump the logs cache. 2015-09-09 15:23:24 -07:00
serialization_utils.h metrics: Add an option to metrics_client to dump the logs cache. 2015-09-09 15:23:24 -07:00
serialization_utils_unittest.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00