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

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

Issue 363263002: DevTools: Timeline: show correct information in cpu bar popover (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« 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: Source/devtools/front_end/timeline/TimelineUIUtils.js
diff --git a/Source/devtools/front_end/timeline/TimelineUIUtils.js b/Source/devtools/front_end/timeline/TimelineUIUtils.js
index 6f4e462fb609c5a19bb8eac0bfc92198ceb1e6a8..7250345fe6c110602be692ab2410b50c9a6f9396 100644
--- a/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -182,7 +182,7 @@ WebInspector.TimelineUIUtils.categories = function()
/**
* @param {!WebInspector.TimelineModel} model
- * @param {!{name: string, tasks: !Array.<!{startTime: number, endTime: number}>, firstTaskIndex: number, lastTaskIndex: number}} info
+ * @param {!{name: string, tasks: !Array.<!WebInspector.TimelineModel.Record>, firstTaskIndex: number, lastTaskIndex: number}} info
* @return {!Element}
*/
WebInspector.TimelineUIUtils.generateMainThreadBarPopupContent = function(model, info)
@@ -195,10 +195,10 @@ WebInspector.TimelineUIUtils.generateMainThreadBarPopupContent = function(model,
for (var i = firstTaskIndex; i <= lastTaskIndex; ++i) {
var task = tasks[i];
- cpuTime += task.endTime - task.startTime;
+ cpuTime += task.endTime() - task.startTime();
}
- var startTime = tasks[firstTaskIndex].startTime;
- var endTime = tasks[lastTaskIndex].endTime;
+ var startTime = tasks[firstTaskIndex].startTime();
+ var endTime = tasks[lastTaskIndex].endTime();
var duration = endTime - startTime;
var contentHelper = new WebInspector.TimelinePopupContentHelper(info.name);
« 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