Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: runtime/observatory/lib/src/models/repositories/metric.dart

Issue 2303173002: Converted Observatory metrics-page element (Closed)
Patch Set: Added sampling buffer size select Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698