| 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 code_view_element; | 5 library code_view_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'package:observatory/app.dart'; | 10 import 'package:observatory/app.dart'; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 _updateInline(); | 60 _updateInline(); |
| 61 }); | 61 }); |
| 62 } | 62 } |
| 63 | 63 |
| 64 Future refresh() { | 64 Future refresh() { |
| 65 return code.reload(); | 65 return code.reload(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 Future refreshTicks() { | 68 Future refreshTicks() { |
| 69 var isolate = code.isolate; | 69 var isolate = code.isolate; |
| 70 return isolate.invokeRpc('getCpuProfile', { 'tags': 'None' }) | 70 return isolate.invokeRpc('_getCpuProfile', { 'tags': 'None' }) |
| 71 .then((ServiceMap response) { | 71 .then((ServiceMap response) { |
| 72 var cpuProfile = new CpuProfile(); | 72 var cpuProfile = new CpuProfile(); |
| 73 cpuProfile.load(isolate, response); | 73 cpuProfile.load(isolate, response); |
| 74 _updateDisassembly(); | 74 _updateDisassembly(); |
| 75 _updateInline(); | 75 _updateInline(); |
| 76 }); | 76 }); |
| 77 } | 77 } |
| 78 | 78 |
| 79 String formattedAddress(CodeInstruction instruction) { | 79 String formattedAddress(CodeInstruction instruction) { |
| 80 if (instruction.address == 0) { | 80 if (instruction.address == 0) { |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 } | 361 } |
| 362 | 362 |
| 363 void mouseOut(Event e, var detail, Node target) { | 363 void mouseOut(Event e, var detail, Node target) { |
| 364 var jt = _findJumpTarget(target); | 364 var jt = _findJumpTarget(target); |
| 365 if (jt == null) { | 365 if (jt == null) { |
| 366 return; | 366 return; |
| 367 } | 367 } |
| 368 jt.classes.remove('highlight'); | 368 jt.classes.remove('highlight'); |
| 369 } | 369 } |
| 370 } | 370 } |
| OLD | NEW |