| 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 library heap_profile_element; | 5 library heap_profile_element; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'observatory_element.dart'; | 8 import 'observatory_element.dart'; |
| 9 import 'package:logging/logging.dart'; | |
| 10 import 'package:observatory/app.dart'; | 9 import 'package:observatory/app.dart'; |
| 11 import 'package:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
| 12 import 'package:observatory/elements.dart'; | 11 import 'package:observatory/elements.dart'; |
| 13 import 'package:polymer/polymer.dart'; | 12 import 'package:polymer/polymer.dart'; |
| 14 | 13 |
| 15 class ClassSortedTable extends SortedTable { | 14 class ClassSortedTable extends SortedTable { |
| 16 | 15 |
| 17 ClassSortedTable(columns) : super(columns); | 16 ClassSortedTable(columns) : super(columns); |
| 18 | 17 |
| 19 @override | 18 @override |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 } | 358 } |
| 360 | 359 |
| 361 @observable String formattedTotalCollectionTime(bool newSpace) { | 360 @observable String formattedTotalCollectionTime(bool newSpace) { |
| 362 if (profile == null) { | 361 if (profile == null) { |
| 363 return ''; | 362 return ''; |
| 364 } | 363 } |
| 365 var heap = newSpace ? isolate.newSpace : isolate.oldSpace; | 364 var heap = newSpace ? isolate.newSpace : isolate.oldSpace; |
| 366 return '${Utils.formatSeconds(heap.totalCollectionTimeInSeconds)} secs'; | 365 return '${Utils.formatSeconds(heap.totalCollectionTimeInSeconds)} secs'; |
| 367 } | 366 } |
| 368 } | 367 } |
| OLD | NEW |