summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDavid Chen <dwchen@google.com>2018-02-12 17:24:40 -0800
committerDavid Chen <dwchen@google.com>2018-02-20 13:45:25 -0800
commit2e414b99f44f00000d84765b3a095490415695af (patch)
tree1233cb7da17d422af1030247fd2d3300e7d72952 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf4546316cdf70079e944729c6e2fd63ca066bc17 (diff)
Adds anomaly detection to max duration metrics.
Statsd supports anomaly detection for max duration, which is conceptually like asking for an anomaly on the current duration. There was a bug previously in the logic for max duration since we recorded a duration every time a dimension went into pause. Now, we only record a max duration when the dimension goes into stop. When a dimension inside the MaxDurationTracker leaves the started state, we need to check if we still need to keep an anomaly alarm set. It's possible that we just immediately set an alarm with the same timestamp as what was just deleted. Test: Added some unit-tests and tested on marlin-eng. Change-Id: I09c82cd266b4cc6e1c893ad166e602bf08baca0e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions