diff options
| author | Bertrand SIMONNET <bsimonnet@google.com> | 2015-12-15 12:33:01 -0800 |
|---|---|---|
| committer | Bertrand SIMONNET <bsimonnet@google.com> | 2016-01-12 15:54:11 -0800 |
| commit | 0586504e01784b054944ca12f816880e27dfc2e7 (patch) | |
| tree | 18538ed6ac97aa258aeb7e10960e3c83c0ab6277 /base/errors_unix.cpp | |
| parent | b6c77af4993b5e5a83fd1ed80309823e44f70650 (diff) | |
metricsd: Persist the metrics to disk periodically.
Every now and then (5 minutes by default), the uploader will persist the
current metrics to disk to avoid losing them in case we exit
unexpectedly (reboot or crash).
When starting up, metricsd will load the previously saved log and resume
the metrics collection from there.
Bug: 25670584
Test: Unit tests.
Test: manual: restart metricsd. The saved log is detected and parsed
correctly.
Test: manual: Send a sample to metricsd, send SIGTERM to metricsd, the
log is saved to disk, metricsd restarts and picks up the log where it
left.
Change-Id: I4cefc62c7ea1fa51333d84d8a7ba0a2e9c7fd58f
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
