commit | e6cfb1417d6e0ed1f46bff7b8e242737e8bbaaca | [log] [tgz] |
---|---|---|
author | Yao Chen <yaochen@google.com> | Mon Apr 08 12:00:01 2019 -0700 |
committer | Yao Chen <yaochen@google.com> | Tue Apr 09 19:21:12 2019 +0000 |
tree | 2159760c8811ae0e9c96d0e8f91874094604fc42 | |
parent | 8d3cb6b3fd2e0f85c8dac16b2413f3256cde307a [diff] |
Add a condition timer to track the duration of condition being true. + Plug it in ValueMetric as the frist step as we often need to normalize the values by the duration of condition being true. E.g., Coulomb counter drop / screen_on_and_on_battery_time Having a simple timer inside the metric will eliminate the need of creating another duration metric and joining them on server side. Test: statsd_test Fix: 130048020 Change-Id: Ie377dc6de917176ab07843e0dfd8506ed1d5db75