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

Side by Side Diff: runtime/observatory/lib/src/elements/allocation_profile.dart

Issue 2976903002: [observatory] Default sort allocation profiles by size instead of name. (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/code_ref.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:charted/charted.dart'; 7 import 'package:charted/charted.dart';
8 import "package:charted/charts/charts.dart"; 8 import "package:charted/charts/charts.dart";
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/class_ref.dart'; 10 import 'package:observatory/src/elements/class_ref.dart';
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 M.VM _vm; 58 M.VM _vm;
59 M.IsolateRef _isolate; 59 M.IsolateRef _isolate;
60 M.EventRepository _events; 60 M.EventRepository _events;
61 M.NotificationRepository _notifications; 61 M.NotificationRepository _notifications;
62 M.AllocationProfileRepository _repository; 62 M.AllocationProfileRepository _repository;
63 M.AllocationProfile _profile; 63 M.AllocationProfile _profile;
64 bool _autoRefresh = false; 64 bool _autoRefresh = false;
65 bool _isCompacted = false; 65 bool _isCompacted = false;
66 StreamSubscription _gcSubscription; 66 StreamSubscription _gcSubscription;
67 _SortingField _sortingField = _SortingField.className; 67 _SortingField _sortingField = _SortingField.currentSize;
68 _SortingDirection _sortingDirection = _SortingDirection.ascending; 68 _SortingDirection _sortingDirection = _SortingDirection.descending;
69 69
70 M.VMRef get vm => _vm; 70 M.VMRef get vm => _vm;
71 M.IsolateRef get isolate => _isolate; 71 M.IsolateRef get isolate => _isolate;
72 M.NotificationRepository get notifications => _notifications; 72 M.NotificationRepository get notifications => _notifications;
73 73
74 factory AllocationProfileElement( 74 factory AllocationProfileElement(
75 M.VM vm, 75 M.VM vm,
76 M.IsolateRef isolate, 76 M.IsolateRef isolate,
77 M.EventRepository events, 77 M.EventRepository events,
78 M.NotificationRepository notifications, 78 M.NotificationRepository notifications,
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 static int _getNewCurrentInstances(M.ClassHeapStats s) => 637 static int _getNewCurrentInstances(M.ClassHeapStats s) =>
638 s.newSpace.current.instances; 638 s.newSpace.current.instances;
639 static int _getOldAccumulatedSize(M.ClassHeapStats s) => 639 static int _getOldAccumulatedSize(M.ClassHeapStats s) =>
640 s.oldSpace.accumulated.bytes; 640 s.oldSpace.accumulated.bytes;
641 static int _getOldAccumulatedInstances(M.ClassHeapStats s) => 641 static int _getOldAccumulatedInstances(M.ClassHeapStats s) =>
642 s.oldSpace.accumulated.instances; 642 s.oldSpace.accumulated.instances;
643 static int _getOldCurrentSize(M.ClassHeapStats s) => s.oldSpace.current.bytes; 643 static int _getOldCurrentSize(M.ClassHeapStats s) => s.oldSpace.current.bytes;
644 static int _getOldCurrentInstances(M.ClassHeapStats s) => 644 static int _getOldCurrentInstances(M.ClassHeapStats s) =>
645 s.oldSpace.current.instances; 645 s.oldSpace.current.instances;
646 } 646 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/code_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698