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

Unified Diff: tools/turbolizer/schedule-view.js

Issue 2059193002: [turbolizer] Features and bug-fixes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « tools/turbolizer/graph-view.js ('k') | tools/turbolizer/turbo-visualizer.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/schedule-view.js
diff --git a/tools/turbolizer/schedule-view.js b/tools/turbolizer/schedule-view.js
index ca1cf8ae8ec5891b55968c74706dee28a6426d16..58d0af7ec56ac64d39f7e67b91393131363ba2f5 100644
--- a/tools/turbolizer/schedule-view.js
+++ b/tools/turbolizer/schedule-view.js
@@ -76,8 +76,8 @@ class ScheduleView extends TextView {
],
// Parse opcode including []
[
- [/^[A-Za-z0-9_]+(\[[^\]]+\])?$/, NODE_STYLE, -1],
- [/^[A-Za-z0-9_]+(\[[^\]]+\])?/, NODE_STYLE, 3]
+ [/^[A-Za-z0-9_]+(\[.+])?$/, NODE_STYLE, -1],
+ [/^[A-Za-z0-9_]+(\[.+])?/, NODE_STYLE, 3]
],
// Parse optional parameters
[
@@ -105,4 +105,23 @@ class ScheduleView extends TextView {
this.setPatterns(patterns);
this.setNodePositionMap(nodePositionMap);
}
+
+ initializeContent(data, rememberedSelection) {
+ super.initializeContent(data, rememberedSelection);
+ var graph = this;
+ var locations = [];
+ for (var id of rememberedSelection) {
+ locations.push({ node_id : id });
+ }
+ this.selectLocations(locations, true, false);
+ }
+
+ detachSelection() {
+ var selection = this.selection.detachSelection();
+ var s = new Set();
+ for (var i of selection) {
+ s.add(i.location.node_id);
+ };
+ return s;
+ }
}
« no previous file with comments | « tools/turbolizer/graph-view.js ('k') | tools/turbolizer/turbo-visualizer.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698