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 isolate_profile_element; | 5 library isolate_profile_element; |
6 | 6 |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'package:dprof/model.dart' as dprof; | 9 import 'package:dprof/model.dart' as dprof; |
10 import 'package:polymer/polymer.dart'; | 10 import 'package:polymer/polymer.dart'; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return (total * 100.0).toStringAsFixed(2); | 140 return (total * 100.0).toStringAsFixed(2); |
141 } | 141 } |
142 | 142 |
143 String instructionDisplay(dprof.Instruction instruction) { | 143 String instructionDisplay(dprof.Instruction instruction) { |
144 if (instruction == null) { | 144 if (instruction == null) { |
145 return ''; | 145 return ''; |
146 } | 146 } |
147 return instruction.human; | 147 return instruction.human; |
148 } | 148 } |
149 } | 149 } |
OLD | NEW |