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

Unified Diff: runtime/observatory/lib/src/cpu_profile/cpu_profile.dart

Issue 2962593002: Added Editor stream and sendObjectToEditor RPC into Service Protocol (Closed)
Patch Set: Added explanation comment Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/app/page.dart ('k') | runtime/observatory/lib/src/elements/css/shared.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
diff --git a/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart b/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
index 87c4213219abeefdbf20c4beaea149013ea1ab09..747d7b9ca9b1da8dfc3fcda55d4b400d6436c632 100644
--- a/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
+++ b/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart
@@ -473,15 +473,15 @@ class ProfileCode implements M.ProfileCode {
final Map<ProfileCode, int> callers = new Map<ProfileCode, int>();
final Map<ProfileCode, int> callees = new Map<ProfileCode, int>();
- void _processTicks(List<String> profileTicks) {
+ void _processTicks(List<dynamic> profileTicks) {
assert(profileTicks != null);
assert((profileTicks.length % 3) == 0);
for (var i = 0; i < profileTicks.length; i += 3) {
// TODO(observatory): Address is not necessarily representable as a JS
// integer.
- var address = int.parse(profileTicks[i], radix: 16);
- var exclusive = profileTicks[i + 1];
- var inclusive = profileTicks[i + 2];
+ var address = int.parse(profileTicks[i] as String, radix: 16);
+ var exclusive = profileTicks[i + 1] as int;
+ var inclusive = profileTicks[i + 2] as int;
var tick = new CodeTick(exclusive, inclusive);
addressTicks[address] = tick;
« no previous file with comments | « runtime/observatory/lib/src/app/page.dart ('k') | runtime/observatory/lib/src/elements/css/shared.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698