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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js

Issue 2283143002: DevTools: Use stableSort for async events (Closed)
Patch Set: Created 4 years, 4 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 | third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js
index 1e50f8d70a35095a674900d0e895d3d37c873d4a..7928e6f026413a94027e56acc1cdf3249734bd8d 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js
@@ -297,7 +297,7 @@ WebInspector.TracingModel.prototype = {
_processPendingAsyncEvents: function()
{
- this._asyncEvents.sort(WebInspector.TracingModel.Event.compareStartTime);
+ this._asyncEvents.stableSort(WebInspector.TracingModel.Event.compareStartTime);
for (var i = 0; i < this._asyncEvents.length; ++i) {
var event = this._asyncEvents[i];
if (WebInspector.TracingModel.isNestableAsyncPhase(event.phase))
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698