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

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

Issue 2271083003: Fixed cpu-profile-table data visualization (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | no next file » | 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) 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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698