OSDN Git Service

Add EventMetricProducer
authorYao Chen <yaochen@google.com>
Mon, 23 Oct 2017 19:50:02 +0000 (12:50 -0700)
committerYao Chen <yaochen@google.com>
Tue, 24 Oct 2017 19:27:23 +0000 (12:27 -0700)
commit5110bedd787835d4dbc809b7977285cac364bdef
treecd5ef12c9e663bd2e439ab1b05896c55913e5b96
parentde10727f3e489f44f657de28773bccb6989b63de
Add EventMetricProducer

+ Started to use ProtoOutputStream in EventMetricProducer.
  [TODO]: We need to auto-generate fieldIds for StatsLogReport, XXXMetricData, etc.
  [TODO]: We need to add Enum type to liblog, otherwise we cannot reconstruct a proto containing
          an enum

+ Some refactor in metric initialization code. There are still boiler plate code, because Metrics
  are similar but with subtle differences.

Test: statsd_test

Change-Id: Id7e3212566249a8139b9680f04238c455d50c1b8
cmds/statsd/Android.mk
cmds/statsd/src/condition/SimpleConditionTracker.cpp
cmds/statsd/src/config/ConfigManager.cpp
cmds/statsd/src/logd/LogEvent.cpp
cmds/statsd/src/logd/LogEvent.h
cmds/statsd/src/metrics/EventMetricProducer.cpp [new file with mode: 0644]
cmds/statsd/src/metrics/EventMetricProducer.h [new file with mode: 0644]
cmds/statsd/src/metrics/metrics_manager_util.cpp
cmds/statsd/src/metrics/metrics_manager_util.h
cmds/statsd/src/stats_util.h