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

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

Issue 336713005: [Blink] [PowerProfiler] Support accuracy level attribute for power data provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index ae648e0a638d0486a2261267c5b8586bf7ab2e75..35a45c3c0ec3e396fa3aa6addb37b57d676c708b 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -1067,6 +1067,7 @@ WebInspector.TimelinePanel.prototype = {
if (this._overviewControls[i] instanceof WebInspector.TimelinePowerOverview) {
var energy = this._overviewControls[i].calculateEnergy(startTime, endTime);
title += WebInspector.UIString(" Energy: %.2f Joules", energy);
+ title += WebInspector.UIString(" Accuracy: %s", WebInspector.powerProfiler.accuracyLevel());
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698