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

Unified Diff: runtime/observatory/lib/src/elements/timeline_page.dart

Issue 1525913002: Observatory: Include profiler samples in the timeline view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/timeline_page.dart
diff --git a/runtime/observatory/lib/src/elements/timeline_page.dart b/runtime/observatory/lib/src/elements/timeline_page.dart
index 2d7049ffb51ee98c05b047757e28769786af03c7..04a7376186b8ef6da0113d23d866be987f92bcce 100644
--- a/runtime/observatory/lib/src/elements/timeline_page.dart
+++ b/runtime/observatory/lib/src/elements/timeline_page.dart
@@ -32,10 +32,15 @@ class TimelinePageElement extends ObservatoryElement {
Future postMessage(String method) {
IFrameElement e = $['root'];
+ var isolateIds = new List();
+ for (var isolate in app.vm.isolates) {
+ isolateIds.add(isolate.id);
+ }
var message = {
'method': method,
'params': {
- 'vmAddress': (app.vm as WebSocketVM).target.networkAddress
+ 'vmAddress': (app.vm as WebSocketVM).target.networkAddress,
+ 'isolateIds': isolateIds
}
};
e.contentWindow.postMessage(JSON.encode(message), window.location.href);
« no previous file with comments | « no previous file | runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698