History log of /system/core/metricsd/persistent_integer.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a7bc1c14df9993fc2ae0ec6258e513b8371dd910 25-Nov-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Specify directory for persistent integers.

Instead of using a global directory for persistent integers, specify the
directory to use in the constructor.
This will make changing the backing directory easier.

Bug: 25886951

Change-Id: I590816b195fa81b179a5ec78b9cdf41bc86353dc
/system/core/metricsd/persistent_integer.cc
608e428006fa317badd51b941e05bdba42bd08bd 13-Nov-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Split into two daemons.

This CL splits metrics_daemon into two independent daemons: metricsd and
metrics_collector.

* metricsd will be responsible for reading the metrics from disk and
periodically uploading them to the server.
* metrics_collector will be responsible for gathering generic metrics
from the system and managing the weave state for metrics.

This refactoring is necessary to prepare the migration of metricsd to
log over binder.

Bug: 25670908
Test: Unit tests.
Test: manual: both daemons run. Metrics are logged, uploaded and the
weave interaction works.

Change-Id: Ib00e1772bb7eec87cbcdcd912c30b555d79d7074
/system/core/metricsd/persistent_integer.cc
1253186728abd35d7177008598627e7b872974e5 31-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Make the unit tests pass.

This cleans up the unit tests and update them to pass.

Cleaned up:
* removed the irrelevant bits.
* Used ScopedTempDir for all test specific files (instead of the current
directory).
* Update some objects to make them more easily testable.
* Group all the test in a single binary and use bionic's test runner.

BUG: 23682444
Change-Id: I289e3a5ff89968fdecd4a156e93bc38bbc25f58b
/system/core/metricsd/persistent_integer.cc
52e5b99983c1f7ff0b9a1f3b4b80d779073b21c8 11-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Relicense as Apache 2.

MODULE_LICENSE_BSD and NOTICE were removed as the license is no longer
different from the rest of system/core.

BUG: 23086670
Change-Id: I1e83ef2ecb9c721150f8aab283c9ff960337da8c
/system/core/metricsd/persistent_integer.cc
da21ac0751a3abf3502ff74c5de7ad95db52ba30 10-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Rename metrics to metricsd.

This makes the import path less confusing:
* metrics/metrics_library.h is imported from the exported headers.
* metricsd/* for includes by the metrics daemon itself.

BUG: 22879597
Change-Id: I9f44ea3a548cae39d4546fcd724e8007f6dd4bd0
/system/core/metricsd/persistent_integer.cc