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

Unified Diff: Source/devtools/front_end/CPUProfileView.js

Issue 23924003: Support submillisecond times on FlameChart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index 4e209b7b16ffab278d73fb03036d2c6c26e882f9..d744b17c7d49f8ad843c56e22f4331ac9f946e88 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -575,6 +575,7 @@ WebInspector.CPUProfileView.prototype = {
var durationMs = 1000 * profile.endTime - 1000 * profile.startTime;
var samplingRate = profile.totalHitCount / durationMs;
+ this.samplesPerMs = samplingRate;
function calculateTimesForNode(node) {
node.selfTime = node.hitCount * samplingRate;
« no previous file with comments | « no previous file | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698