Don't just clear mPastBuckets when onDumpReport is called.
This needs to be done properly. Left a TODO. Test: statsd_test Change-Id: I8537f0a870ab82039e0822c69096784403ee1651
This commit is contained in:
@@ -222,10 +222,8 @@ std::unique_ptr<std::vector<uint8_t>> DurationMetricProducer::onDumpReport() {
|
||||
(long long)mCurrentBucketStartTimeNs);
|
||||
|
||||
std::unique_ptr<std::vector<uint8_t>> buffer = serializeProto();
|
||||
|
||||
startNewProtoOutputStream(endTime);
|
||||
mPastBuckets.clear();
|
||||
|
||||
// TODO: Properly clear the old buckets.
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user