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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory/chart.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/chart.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory/chart.dart b/runtime/bin/vmservice/client/lib/src/observatory/chart.dart
index dc3f1923da8f7e25e1753be2d52815711ba448a5..37204e636a9b1ee6e2a4fb8e4d025bb0de937c8b 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory/chart.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory/chart.dart
@@ -93,12 +93,11 @@ class Chart {
/// with the current sort settings.
void refreshOptionsSortInfo() {
var props = _chart.callMethod('getSortInfo');
- print(options);
- if (props != null) {
+ if ((props != null) && (props['column'] != -1)) {
+ // Preserve current sort settings.
options['sortColumn'] = props['column'];
options['sortAscending'] = props['ascending'];
}
- print(options);
}
/// Draw this chart using [table] and the current [options].

Powered by Google App Engine
This is Rietveld 408576698