summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@chromium.org>2015-02-18 09:38:55 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-20 00:07:08 +0000
commite4fa61e05e17d759dae5a724d67c34dafa3d706a (patch)
tree694bf250ad7238693aae393b2486c89818a4cd97 /trusty/coverage/coverage.cpp
parent067ec8ba78287d2992331423d74d978cfa8669ff (diff)
metrics: don't upload metrics when metrics are disabled
The uploader should only send metrics samples when the metrics are enabled. The uploader daemon is still started when the metrics are disabled so that: * When we enable the metrics, we don't require a restart of metrics_daemon to start uploading metrics. * The metrics file is truncated periodically and avoid taking too much space on long running system with metrics disabled. BUG=chromium:459636 TEST=unittests TEST=`test_that -b gizmo gizmo platform_MetricsUploader` works TEST=manual: uploader does not upload metrics if metrics are disabled. CQ-DEPEND=CL:250980 Change-Id: I9f5da3457066a183c5791b5488e985b7ab13b6e1 Reviewed-on: https://chromium-review.googlesource.com/250822 Trybot-Ready: Bertrand Simonnet <bsimonnet@chromium.org> Tested-by: Bertrand Simonnet <bsimonnet@chromium.org> Reviewed-by: Nathan Bullock <nathanbullock@google.com> Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions