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

Unified Diff: sdk/lib/profiler/profiler.dart

Issue 886353006: Port metrics to RPC (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/service/service.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/profiler/profiler.dart
diff --git a/sdk/lib/profiler/profiler.dart b/sdk/lib/profiler/profiler.dart
index 1834f37b8dbff1517b8617ef888e54518e61330c..0081ecf4e847e1a2bf9131e822c0143e2883c257 100644
--- a/sdk/lib/profiler/profiler.dart
+++ b/sdk/lib/profiler/profiler.dart
@@ -186,14 +186,13 @@ class Metrics {
}
static String _printMetrics() {
- var members = [];
+ var metrics = [];
for (var metric in _metrics.values) {
- members.add(metric._toJSON());
+ metrics.add(metric._toJSON());
}
var map = {
'type': 'MetricList',
- 'id': 'metrics',
- 'members': members,
+ 'metrics': metrics,
};
return JSON.encode(map);
}
« no previous file with comments | « runtime/vm/service/service.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698