| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 cpu_profile_table_element; | 5 library cpu_profile_table_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
| 10 import 'package:observatory/src/elements/containers/virtual_collection.dart'; | 10 import 'package:observatory/src/elements/containers/virtual_collection.dart'; |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 case _SortingDirection.ascending: | 436 case _SortingDirection.ascending: |
| 437 return (a, b) => getter(a).compareTo(getter(b)); | 437 return (a, b) => getter(a).compareTo(getter(b)); |
| 438 case _SortingDirection.descending: | 438 case _SortingDirection.descending: |
| 439 return (a, b) => getter(b).compareTo(getter(a)); | 439 return (a, b) => getter(b).compareTo(getter(a)); |
| 440 } | 440 } |
| 441 } | 441 } |
| 442 | 442 |
| 443 static double _getExclusiveT(M.ProfileFunction f) => | 443 static double _getExclusiveT(M.ProfileFunction f) => |
| 444 f.normalizedExclusiveTicks; | 444 f.normalizedExclusiveTicks; |
| 445 static double _getInclusiveT(M.ProfileFunction f) => | 445 static double _getInclusiveT(M.ProfileFunction f) => |
| 446 f.normalizedExclusiveTicks; | 446 f.normalizedInclusiveTicks; |
| 447 double _getCalleeT(M.ProfileFunction f) => | 447 double _getCalleeT(M.ProfileFunction f) => |
| 448 _selected.callees[f] / _selected.callees.values.reduce((a, b) => a + b); | 448 _selected.callees[f] / _selected.callees.values.reduce((a, b) => a + b); |
| 449 double _getCallerT(M.ProfileFunction f) => | 449 double _getCallerT(M.ProfileFunction f) => |
| 450 _selected.callers[f] / _selected.callers.values.reduce((a, b) => a + b); | 450 _selected.callers[f] / _selected.callers.values.reduce((a, b) => a + b); |
| 451 } | 451 } |
| OLD | NEW |