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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 1959783002: DevTools: Introduce device dependent CPU throttling rates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
index 5506797c82a18e1a4e4064d07616a2ee2f5412b5..ea6d72538f8f9ae9835d8322a9aaadf53e71baf9 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -420,8 +420,8 @@ WebInspector.TimelinePanel.prototype = {
this._cpuThrottlingCombobox.select(option);
}
addGroupingOption.call(this, WebInspector.UIString("No CPU throttling"), 1);
- for (var rate of [1.2, 1.5, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 50])
- addGroupingOption.call(this, WebInspector.UIString("%fx slowdown", rate), rate);
+ addGroupingOption.call(this, WebInspector.UIString("High end device\u2003(2x slowdown)"), 2);
+ addGroupingOption.call(this, WebInspector.UIString("Low end device\u2003(5x slowdown)"), 5);
this._panelToolbar.appendToolbarItem(this._cpuThrottlingCombobox);
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698