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

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

Issue 2171543004: [turbolizer] Remember the last phase, search query, and pane expansions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@t-p6
Patch Set: Fix bug in remembering pane state. Created 4 years, 5 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 | « no previous file | tools/turbolizer/turbo-visualizer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/graph-view.js
diff --git a/tools/turbolizer/graph-view.js b/tools/turbolizer/graph-view.js
index 7431f4b9a14fe4501ceb652cd88e7d3085710152..9ed4fb5684122747df8aac8524ef0d4f5bb75bac 100644
--- a/tools/turbolizer/graph-view.js
+++ b/tools/turbolizer/graph-view.js
@@ -510,7 +510,10 @@ class GraphView extends View {
searchInputAction(graph) {
if (d3.event.keyCode == 13) {
graph.state.selection.clear();
- var reg = new RegExp(this.value);
+ var query = this.value;
+ window.sessionStorage.setItem("lastSearch", query);
+
+ var reg = new RegExp(query);
var filterFunction = function(n) {
return (reg.exec(n.getDisplayLabel()) != null ||
(graph.state.showTypes && reg.exec(n.getDisplayType())) ||
« no previous file with comments | « no previous file | tools/turbolizer/turbo-visualizer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698