summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2017-10-16 10:33:26 -0700
committerYao Chen <yaochen@google.com>2017-10-19 15:40:55 -0700
commit729093df0dd7d7038ad43b16ecdb59a1404f3b50 (patch)
treea2a85c957fba0fdb38dd79723c6e1084c7f5bb48 /tools/aapt2/java/JavaClassGenerator.cpp
parentc35ca6de375a1a17a3e070f85e7cf15272d92181 (diff)
Add support for dimension, and link with condition and added DurationMetric
Now we support following metrics: <Duration> of [app holding a wake lock], while [*this app*] is [in background] [AND] [screen is off] [Slice] the output by [app name, wake lock name], with bucket size [30sec] + Also added onDumpReport() api in MetricsManager, it can be called from client to fetch the data from statsd + Also added command line tool to dump the StatsLogReport from all metrics for debugging. + Synced proto from google3. with a pending cl (cr/172359050) TODO: We need to add tons of tests to test the Metrics. I will work on it after this CL so people can be unblocked. I locally test the duration metric with wake lock with an app that generates StatsLog events. Test: statsd_test and manual test, and run: adb shell cmd stats dump-report We have a default config, which contains a metrics to count PROCESS_START event sliced by package name. Change-Id: I4838cc6cf025c143b7e84f43040703a78121fd25
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions