| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file | 3 // BSD-style license that can be found in the LICENSE file |
| 4 | 4 |
| 5 part of models; | 5 part of models; |
| 6 | 6 |
| 7 enum MetricBufferSize { | 7 enum MetricBufferSize { n10samples, n100samples, n1000samples } |
| 8 n10samples, | |
| 9 n100samples, | |
| 10 n1000samples | |
| 11 } | |
| 12 | 8 |
| 13 enum MetricSamplingRate { | 9 enum MetricSamplingRate { off, e100ms, e1s, e2s, e4s, e8s } |
| 14 off, | |
| 15 e100ms, | |
| 16 e1s, | |
| 17 e2s, | |
| 18 e4s, | |
| 19 e8s | |
| 20 } | |
| 21 | 10 |
| 22 abstract class MetricRepository { | 11 abstract class MetricRepository { |
| 23 Future<Iterable<Metric>> list(IsolateRef isolate); | 12 Future<Iterable<Metric>> list(IsolateRef isolate); |
| 24 void setSamplingRate(IsolateRef isolate, Metric metric, MetricSamplingRate r); | 13 void setSamplingRate(IsolateRef isolate, Metric metric, MetricSamplingRate r); |
| 25 MetricSamplingRate getSamplingRate(IsolateRef isolate, Metric metric); | 14 MetricSamplingRate getSamplingRate(IsolateRef isolate, Metric metric); |
| 26 void setBufferSize(IsolateRef isolate, Metric metric, MetricBufferSize r); | 15 void setBufferSize(IsolateRef isolate, Metric metric, MetricBufferSize r); |
| 27 MetricBufferSize getBufferSize(IsolateRef isolate, Metric metric); | 16 MetricBufferSize getBufferSize(IsolateRef isolate, Metric metric); |
| 28 Iterable<MetricSample> getSamples(IsolateRef isolate, Metric metric); | 17 Iterable<MetricSample> getSamples(IsolateRef isolate, Metric metric); |
| 29 double getMinValue(IsolateRef isolate, Metric metric); | 18 double getMinValue(IsolateRef isolate, Metric metric); |
| 30 double getMaxValue(IsolateRef isolate, Metric metric); | 19 double getMaxValue(IsolateRef isolate, Metric metric); |
| 31 } | 20 } |
| OLD | NEW |