diff options
author | Olivier Gaillard <gaillard@google.com> | 2019-02-22 15:43:31 +0000 |
---|---|---|
committer | Olivier Gaillard <gaillard@google.com> | 2019-02-25 13:59:30 +0000 |
commit | 47a9efce8fe53dc4084aeafdacac5a980e47c5c1 (patch) | |
tree | 8cca2232f35e181bda09df374db6af53ea78a923 /rs/java/android/renderscript/ProgramStore.java | |
parent | 8e95f0bfb9294da0bdbe57f12c616e593aafa5c3 (diff) |
Fix usage of flush buckets.
- For pulled metrics, buckets should only be flushed when we did a pull.
Without a pull, we will have incomplete data.
- Flush buckets at the end of each incoming event (on data pull,
app upgrade, condition change). That way, we can ensure that buckets
will be in sync with the conditions.
- Do not throw away on data pull events which are late as long as they
are in the correct bucket. This is expected since we are using
AlarmManager.
Test: atest statsd_test
Change-Id: If1222b6005a0b88bbdae1b4690921c24acd75542
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions