diff options
author | Yao Chen <yaochen@google.com> | 2017-10-30 22:57:06 -0700 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2017-11-01 10:07:21 -0700 |
commit | 5154a379303ab90a2b2914676a4441917a329b5d (patch) | |
tree | eed7f5ea48e8f21770acd545faa1a03171c42de6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 473b3345a763d45ee93214322f8d984ed4dd60af (diff) |
Adding multi layer aggregation in DurationMetric
Newly supported metrics examples:
1) Compute [Total|Max] duration of [an app] holding [ANY] wake lock while [this app] is in
[background] and [screen off], bucket size 30seconds, and slice output by uid.
2) Compute [Total|Max] duration of [ANY app] holding [ANY] wake lock while [this app] is in
[background] and [screen off], bucket size 30 seconds.
+ DurationMetric proto has a "what" which is a SimpleCondition. It defines the atom level start
and stop of the duration timer, and it has its atom dimension. e.g., for wake locks, the atom
dimensions wil be uid and wl name.
+ Now dimension is explicitly specified in SimpleCondition proto instead of inferred from the "link"
+ Added support for "Or" and "Max" through 2 layers of aggregation.
TODO: (1) The way we track slicedCondition in duration metric is not efficient. optimize!
(2) The output dimension should all use int32 instead of KeyMatcher. Fix in a future cl.
Test: Added some unit tests using gmock. Will add more unit tests.
Change-Id: I58a827624f01f9a54fcb80709c4de4ff94a8bc67
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions