OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe945d1
)
Don't just clear mPastBuckets when onDumpReport is called.
author
Yao Chen
<yaochen@google.com>
Sat, 18 Nov 2017 22:14:38 +0000
(14:14 -0800)
committer
Yao Chen
<yaochen@google.com>
Sat, 18 Nov 2017 22:14:38 +0000
(14:14 -0800)
This needs to be done properly. Left a TODO.
Test: statsd_test
Change-Id: I8537f0a870ab82039e0822c69096784403ee1651
cmds/statsd/src/metrics/DurationMetricProducer.cpp
patch
|
blob
|
history
diff --git
a/cmds/statsd/src/metrics/DurationMetricProducer.cpp
b/cmds/statsd/src/metrics/DurationMetricProducer.cpp
index
581ca41
..
8d2c9f4
100644
(file)
--- a/
cmds/statsd/src/metrics/DurationMetricProducer.cpp
+++ b/
cmds/statsd/src/metrics/DurationMetricProducer.cpp
@@
-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;
}