OSDN Git Service

Support StatsD sending broadcasts.
authorDavid Chen <dwchen@google.com>
Wed, 15 Nov 2017 22:20:04 +0000 (14:20 -0800)
committerDavid Chen <dwchen@google.com>
Fri, 17 Nov 2017 22:57:50 +0000 (14:57 -0800)
commit1d7b0cd6b54e3b3ec8efdffd47b40cdd54c4e8d7
tree8bb111077bb65a183ae0ce0740c42e380981b4f6
parent24c992479799c8330f6b837d504bac7970310947
Support StatsD sending broadcasts.

StatsD will send a broadcast when we're 90% of the way to our
allocated memory limit for the configuration. If the memory usage
goes over the limit, we just lose all the data for this config.

Also modifies the adb shell commands to facilitate debugging of the
broadcasts.

Test: Manually tested on marlin-eng with custom gmscore code.

Change-Id: I517a15bd4c959aa221802f84a51f13141a725102
cmds/statsd/src/StatsLogProcessor.cpp
cmds/statsd/src/StatsLogProcessor.h
cmds/statsd/src/StatsService.cpp
cmds/statsd/src/StatsService.h
cmds/statsd/src/config/ConfigManager.cpp
cmds/statsd/src/config/ConfigManager.h
cmds/statsd/src/metrics/EventMetricProducer.cpp
cmds/statsd/src/metrics/MetricProducer.h
cmds/statsd/src/metrics/MetricsManager.h