Merge "Don't just clear mPastBuckets when onDumpReport is called."

This commit is contained in:
TreeHugger Robot
2017-11-18 23:46:35 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}