summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorDavid Chen <dwchen@google.com>2018-01-19 17:06:45 -0800
committerDavid Chen <dwchen@google.com>2018-02-02 13:30:10 -0800
commit27785a8a4a684c831c18f7189a6fa1b98c3573e6 (patch)
treedd4bac285defe0f60e912970cf1d0bc606357118 /tools/aapt2/java/JavaClassGenerator.cpp
parentc326b50fa009be5e30797f37c23ec7fa2c3c29aa (diff)
Partial buckets on app upgrade and fix duration.
Statsd will create partial buckets in all metrics producers when an app is upgraded so that we can separate metrics between different versions of an app. By looking at the uid map changes, we can tell which app versions belong to a bucket; for metrics that are not affected by an app version, we can instead join the buckets together. To simplify the logic, the ends of the full buckets are always aligned to when the metric producers were created. These boundaries are computed on the fly by using the bucket number and the metric producers' start times. We keep the anomaly trackers to only be given full buckets; we buffer the partial buckets within each metric producer. Duration metric's MAX_SPARSE is fixed to be implemented as such. In addition, after further discussion, we find anomaly detection on MAX_SPARSE to be unnecessary, so this functionality is removed. Test: Unit-tests added and modified, passed on marlin-eng. Change-Id: I5ff7a9c7f05c406e9faf400c6a39162970ded102
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions