summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/7/changes
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-07-14 23:16:24 -0700
committerTej Singh <singhtejinder@google.com>2020-07-28 18:50:48 -0700
commit4402486d37dcd185c13fd2f271af9cf230be5e73 (patch)
treeb7ec97f6f95c1f6cee373f3a8002d1b4c02c37d6 /docs/html/sdk/api_diff/7/changes
parent97683bf1dabec493e92b5e2eda2bbe68a2d1c877 (diff)
Remove alarm manager dependency from anomalyalarms
Anomaly alarms, which are used for prediction-base duration metric anomaly detection, currently use alarm manager for setting alarms. This can result in excessive binder calls to SCS to set/cancel the alarms if the duration metric that the alarm is based on gets stopped/started in quick succession. To resolve this without losing precision, we can instead rely on the flow of events into the statsd socket for this prediction. The socket receives events very frequently, so there should be minimal (if any) loss of precision, and we can remove the binder call entirely. One concern is that we used to hold a wakelock when the alarm fired (since alarm manager would hold a wakelock), and we now lose this ability. Test: atest statsd_test Test: atest AnomalyDetectionTests Bug: 161326200 Change-Id: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
Diffstat (limited to 'docs/html/sdk/api_diff/7/changes')
0 files changed, 0 insertions, 0 deletions