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 d3f56597dcb3bb892a574e7fbd7f10157926bcff..44f1fa10dc026b5b73dabb4de35f9c9a4cf107c1 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePanel.js |
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
@@ -49,6 +49,7 @@ WebInspector.TimelinePanel = function() |
// Create model. |
this._tracingManager = new WebInspector.TracingManager(); |
this._tracingManager.addEventListener(WebInspector.TracingManager.Events.BufferUsage, this._onTracingBufferUsage, this); |
+ this._tracingManager.addEventListener(WebInspector.TracingManager.Events.RetrieveEventsProgress, this._onRetrieveEventsProgress, this); |
this._tracingModel = new WebInspector.TracingModel(); |
this._model = new WebInspector.TimelineModel(this._tracingManager, this._tracingModel, WebInspector.TimelineUIUtils.hiddenRecordsFilter()); |
@@ -758,6 +759,15 @@ WebInspector.TimelinePanel.prototype = { |
}, |
/** |
+ * @param {!WebInspector.Event} event |
+ */ |
+ _onRetrieveEventsProgress: function(event) |
+ { |
+ var progress = /** @type {number} */ (event.data); |
+ this._updateProgress(WebInspector.UIString("Retrieving events\u2026 %d%", Math.round(progress * 100))); |
+ }, |
+ |
+ /** |
* @param {string} progressMessage |
*/ |
_updateProgress: function(progressMessage) |