diff options
author | Yao Chen <yaochen@google.com> | 2017-09-14 22:32:50 -0700 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2017-09-29 12:52:41 -0700 |
commit | 44cf27c14880005df093f372491c593e1a9a3c58 (patch) | |
tree | 04b62e6405c7b5349a1a3f4d7d12a1cd018f9dbb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | f2e65f67a31aa29f5a2b3b00e8e65199cddd63d2 (diff) |
Add metric computation skeleton to statsd.
This cl is to let statsd understand statsd_config, and compute metrics
defined in the config.
+ StatsLogProcessor is given a StatsdConfig (hard coded right now).
We construct a MetricProducer for each of the metric, and the metrics
share Condition and LogEntryMatchers
+ Added the CountMetricProducer type for CountMetric.
We can now count times of SCREEN_ON events given a config.
TODO: 1) conditions are not implemented.
2) slicings are not implemented in CountMetric
3) move the interaction to dropbox to a separate thread
4) decide how the in memory metrics would be used by anomaly detection
Test: manual test.
$ adb shell /system/bin/statsd
$ cat config_file.dat | adb shell cmd stats config
Change-Id: I38f4059c0dc5a827c338131d4a6fa7d4cbe865db
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions