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

Unified Diff: runtime/observatory/lib/src/models/repositories/sample_profile.dart

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Refactoring Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/models/repositories/sample_profile.dart
diff --git a/runtime/observatory/lib/src/models/repositories/sample_profile.dart b/runtime/observatory/lib/src/models/repositories/sample_profile.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c1d79a54e9b3d2109860d755c958a02277ef8e67
--- /dev/null
+++ b/runtime/observatory/lib/src/models/repositories/sample_profile.dart
@@ -0,0 +1,44 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file
+
+part of models;
+
+enum SampleProfileTag {
+ UserVM,
Cutch 2016/08/04 15:35:52 lowerCamelCase (here and elsewhere)
cbernaschina 2016/08/04 19:45:08 Done.
+ UserOnly,
+ VMUser,
+ VMOnly,
+ None
+}
+
+enum SampleProfileLoadingStatus {
+ Disabled,
+ Fetching,
+ Loading,
+ Loaded
+}
+
+abstract class SampleProfileLoadingProgressEvent {
+ SampleProfileLoadingProgress get progress;
+}
+
+abstract class SampleProfileLoadingProgress {
+ SampleProfileLoadingStatus get status;
+ double get progress;
+ Duration get fetchingTime;
+ Duration get loadingTime;
+ SampleProfile get profile;
+
+ Stream<SampleProfileLoadingProgressEvent> get onProgress;
+}
+
+abstract class ClassSampleProfileRepository {
+ SampleProfileLoadingProgress get(ClassRef cls,
+ SampleProfileTag tag, {bool clear: false});
+}
+
+abstract class IsolateSampleProfileRepository {
+ SampleProfileLoadingProgress get(IsolateRef cls,
+ SampleProfileTag tag, {bool clear: false, bool forceFetch: false});
+}

Powered by Google App Engine
This is Rietveld 408576698