Index: Source/devtools/front_end/timeline/TracingModel.js |
diff --git a/Source/devtools/front_end/timeline/TracingModel.js b/Source/devtools/front_end/timeline/TracingModel.js |
index 0261d4ab0f0950f818222deade090011bc08ab06..1775d3359c4839b642ed43de4945e15e5ee6a577 100644 |
--- a/Source/devtools/front_end/timeline/TracingModel.js |
+++ b/Source/devtools/front_end/timeline/TracingModel.js |
@@ -332,6 +332,16 @@ WebInspector.TracingModel.Event.compareStartTime = function (a, b) |
} |
/** |
+ * @param {!WebInspector.TracingModel.Event} a |
+ * @param {!WebInspector.TracingModel.Event} b |
+ * @return {number} |
+ */ |
+WebInspector.TracingModel.Event.orderedCompareStartTime = function (a, b) |
+{ |
+ return a.startTime - b.startTime || -1; |
yurys
2014/07/17 14:32:40
Can you add a comment on why we use -1?
alph
2014/07/17 15:48:43
Nuked.
|
+} |
+ |
+/** |
* @constructor |
*/ |
WebInspector.TracingModel.NamedObject = function() |