| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file |
| 4 |
| 5 part of models; |
| 6 |
| 7 enum MetricBufferSize { |
| 8 n10samples, |
| 9 n100samples, |
| 10 n1000samples |
| 11 } |
| 12 |
| 13 enum MetricSamplingRate { |
| 14 off, |
| 15 e100ms, |
| 16 e1s, |
| 17 e2s, |
| 18 e4s, |
| 19 e8s |
| 20 } |
| 21 |
| 22 abstract class MetricRepository { |
| 23 Future<Iterable<Metric>> list(IsolateRef isolate); |
| 24 void setSamplingRate(IsolateRef isolate, Metric metric, MetricSamplingRate r); |
| 25 MetricSamplingRate getSamplingRate(IsolateRef isolate, Metric metric); |
| 26 void setBufferSize(IsolateRef isolate, Metric metric, MetricBufferSize r); |
| 27 MetricBufferSize getBufferSize(IsolateRef isolate, Metric metric); |
| 28 Iterable<MetricSample> getSamples(IsolateRef isolate, Metric metric); |
| 29 double getMinValue(IsolateRef isolate, Metric metric); |
| 30 double getMaxValue(IsolateRef isolate, Metric metric); |
| 31 } |
| OLD | NEW |