commit | 288c60001330a5a924a47c0eebd6097ae3ee5d67 | [log] [tgz] |
---|---|---|
author | Yao Chen <yaochen@google.com> | Tue Dec 12 13:43:18 2017 -0800 |
committer | Yao Chen <yaochen@google.com> | Tue Dec 12 14:20:32 2017 -0800 |
tree | f69c1c4b2271ef0a96ac983a95a1d153ea8033a4 | |
parent | 32c2161965c5cee8798abdc399b804bb2cb4802c [diff] |
Only create ProtoOutputStream when onGetData() is called. The exception is EventMetricProducer. Each EventMetricProducer will still have a ProtoOutputStream Because LogEvent comes as a fixed 4K, it's more memory efficient to have an 8k ProtoOutputStream for storing the events. Also removed finish() api in MetricProducer, which was intended to use with Dropbox. Test: statsd_test & dogfood app Bug: 70393808 Change-Id: I2efe4ecc76a88060a9aa5eb49d1fa6ea60bc5da8