commit | 768f238251fee2873418c3141f814af30a686bf2 | [log] [tgz] |
---|---|---|
author | Bertrand SIMONNET <bsimonnet@google.com> | Tue Jan 19 14:04:25 2016 -0800 |
committer | Bertrand SIMONNET <bsimonnet@google.com> | Tue Jan 19 14:04:25 2016 -0800 |
tree | 26d14819a2e2740f61c6d48f303dbd1092f32b67 | |
parent | 286cbce9fa82552fdeb94da9545d5c9e840c2513 [diff] |
metricsd: Persist metrics on shutdown. When metricsd receives a SIGTERM signal (on system shutdown for example), save the metrics to disk before exiting. Bug: 26184202 Test: Start metricsd. Log a metric sample. Stop metricsd. The metric is saved to disk. Change-Id: Ib224efa8837130393fac5d06fa80d320263cfc84