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

Side by Side Diff: runtime/observatory/lib/src/elements/code_ref.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 | « runtime/observatory/lib/src/elements/allocation_profile.dart ('k') | 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 code_ref_element; 5 library code_ref_element;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:async'; 8 import 'dart:async';
9 import 'package:observatory/models.dart' as M 9 import 'package:observatory/models.dart' as M
10 show IsolateRef, CodeRef, isSyntheticCode; 10 show IsolateRef, CodeRef, isSyntheticCode;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 @override 46 @override
47 void detached() { 47 void detached() {
48 super.detached(); 48 super.detached();
49 children = []; 49 children = [];
50 _r.disable(notify: true); 50 _r.disable(notify: true);
51 } 51 }
52 52
53 void render() { 53 void render() {
54 final name = (_code.isOptimized ? '*' : '') + _code.name;
55 children = [ 54 children = [
56 new AnchorElement( 55 new AnchorElement(
57 href: ((M.isSyntheticCode(_code.kind)) || (_isolate == null)) 56 href: ((M.isSyntheticCode(_code.kind)) || (_isolate == null))
58 ? null 57 ? null
59 : Uris.inspect(_isolate, object: _code)) 58 : Uris.inspect(_isolate, object: _code))
60 ..text = name 59 ..text = _code.name
61 ]; 60 ];
62 } 61 }
63 } 62 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/allocation_profile.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698