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

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

Issue 722693002: DevTools: show progress when retrieving recorded trace events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 de243fa4f2387d826ce13df20225ab87f9548cd0..b704bd56def72a814838c6e5d8acfe6f60d97611 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());
@@ -761,6 +762,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)

Powered by Google App Engine
This is Rietveld 408576698