Merge "Don't just clear mPastBuckets when onDumpReport is called."
This commit is contained in:
committed by
Android (Google) Code Review
commit
43699661dd
@@ -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