| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |