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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory/isolate.dart

Issue 173013004: Add accumulator to allocation profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/bin/vmservice/client/lib/src/observatory/isolate.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory/isolate.dart b/runtime/bin/vmservice/client/lib/src/observatory/isolate.dart
index d17700b8a6d6531f2e16ffdb24805de70ee00172..6103922046dff893be216468b2b9bd9ed9cc70cb 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory/isolate.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory/isolate.dart
@@ -8,7 +8,7 @@ part of observatory;
/// State for a running isolate.
class Isolate extends Observable {
static ObservatoryApplication _application;
-
+
@observable Profile profile;
@observable final Map<String, Script> scripts =
toObservable(new Map<String, Script>());
@@ -25,9 +25,9 @@ class Isolate extends Observable {
@observable Map topFrame = null;
@observable String fileAndLine = null;
-
+
Isolate.fromId(this.id) : name = '' {}
-
+
Isolate.fromMap(Map map)
: id = map['id'], name = map['name'] {
}
@@ -40,7 +40,7 @@ class Isolate extends Observable {
Logger.root.severe('Error while updating isolate summary: $e\n$trace');
});
}
-
+
void update(Map map) {
if (map['type'] != 'Isolate') {
Logger.root.severe('Unexpected message type in Isolate.update: ${map["type"]}');
@@ -88,6 +88,7 @@ class Isolate extends Observable {
return codes[i];
}
}
+ return null;
}
Code findCodeByName(String name) {
@@ -96,6 +97,7 @@ class Isolate extends Observable {
return codes[i];
}
}
+ return null;
}
void resetCodeTicks() {

Powered by Google App Engine
This is Rietveld 408576698