Commit e486f049 authored by caseq@chromium.org's avatar caseq@chromium.org

Web Inspector: timeline event details popup misses CPU time

https://bugs.webkit.org/show_bug.cgi?id=89765

Reviewed by Pavel Feldman.

* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e6f27232
2012-06-22 Andrey Kosyakov <caseq@chromium.org>
Web Inspector: timeline event details popup misses CPU time
https://bugs.webkit.org/show_bug.cgi?id=89765
Reviewed by Pavel Feldman.
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):
2012-06-22 Peter Beverloo <peter@chromium.org>
[Chromium] Disable c++0x compatibility warnings in JavaScriptCore.gyp when building for Android
......@@ -702,3 +702,4 @@ localizedStrings["Local modifications..."] = "Local modifications...";
localizedStrings["apply original content"] = "apply original content";
localizedStrings["apply revision content"] = "apply revision content";
localizedStrings["revert"] = "revert";
localizedStrings["CPU Time"] = "CPU Time";
......@@ -472,14 +472,15 @@ WebInspector.TimelinePresentationModel.Record.prototype = {
{
var contentHelper = new WebInspector.TimelinePresentationModel.PopupContentHelper(this.title);
contentHelper._appendTextRow(WebInspector.UIString("Duration"), text);
if (this._children && this._children.length) {
contentHelper._appendTextRow(WebInspector.UIString("Self Time"), Number.secondsToString(this._selfTime, true));
contentHelper._appendTextRow(WebInspector.UIString("CPU Time"), Number.secondsToString(this._cpuTime, true));
contentHelper._appendElementRow(WebInspector.UIString("Aggregated Time"),
WebInspector.TimelinePresentationModel._generateAggregatedInfo(this._aggregatedStats));
}
var text = WebInspector.UIString("%s (at %s)", Number.secondsToString(this._lastChildEndTime - this.startTime, true),
Number.secondsToString(this._startTimeOffset));
contentHelper._appendTextRow(WebInspector.UIString("Duration"), text);
const recordTypes = WebInspector.TimelineModel.RecordType;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment