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

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

Issue 1159003002: Make several service protocol RPCs private. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | runtime/observatory/lib/src/elements/cpu_profile.dart » ('j') | 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_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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/cpu_profile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698