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 451f283f1599ad954a3859f9a37abf9b9b1cb025..245f5c025a16877461a0b3715848939f98e3c5fb 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TracingModel.js |
@@ -14,7 +14,7 @@ WebInspector.TracingModel = function(backingStorage) |
// Avoid extra reset of the storage as it's expensive. |
this._firstWritePending = true; |
this.reset(); |
-} |
+}; |
/** |
* @enum {string} |
@@ -47,7 +47,7 @@ WebInspector.TracingModel.MetadataEvent = { |
ProcessName: "process_name", |
ThreadSortIndex: "thread_sort_index", |
ThreadName: "thread_name" |
-} |
+}; |
WebInspector.TracingModel.TopLevelEventCategory = "toplevel"; |
WebInspector.TracingModel.DevToolsMetadataEventCategory = "disabled-by-default-devtools.timeline"; |
@@ -62,7 +62,7 @@ WebInspector.TracingModel.FrameLifecycleEventCategory = "cc,devtools"; |
WebInspector.TracingModel.isNestableAsyncPhase = function(phase) |
{ |
return phase === "b" || phase === "e" || phase === "n"; |
-} |
+}; |
/** |
* @param {string} phase |
@@ -71,7 +71,7 @@ WebInspector.TracingModel.isNestableAsyncPhase = function(phase) |
WebInspector.TracingModel.isAsyncBeginPhase = function(phase) |
{ |
return phase === "S" || phase === "b"; |
-} |
+}; |
/** |
* @param {string} phase |
@@ -80,7 +80,7 @@ WebInspector.TracingModel.isAsyncBeginPhase = function(phase) |
WebInspector.TracingModel.isAsyncPhase = function(phase) |
{ |
return WebInspector.TracingModel.isNestableAsyncPhase(phase) || phase === "S" || phase === "T" || phase === "F" || phase === "p"; |
-} |
+}; |
/** |
* @param {string} phase |
@@ -89,7 +89,7 @@ WebInspector.TracingModel.isAsyncPhase = function(phase) |
WebInspector.TracingModel.isFlowPhase = function(phase) |
{ |
return phase === "s" || phase === "t" || phase === "f"; |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel.Event} event |
@@ -99,7 +99,7 @@ WebInspector.TracingModel.isTopLevelEvent = function(event) |
{ |
return event.hasCategory(WebInspector.TracingModel.TopLevelEventCategory) || |
event.hasCategory(WebInspector.TracingModel.DevToolsMetadataEventCategory) && event.name === "Program"; // Older timelines may have this instead of toplevel. |
-} |
+}; |
/** |
* @param {!WebInspector.TracingManager.EventPayload} payload |
@@ -114,7 +114,7 @@ WebInspector.TracingModel._extractId = function(payload) |
if (typeof id2 === "object" && ("global" in id2) !== ("local" in id2)) |
return typeof id2["global"] !== "undefined" ? `:${scope}:${id2["global"]}` : `:${scope}:${payload.pid}:${id2["local"]}`; |
console.error(`Unexpected id2 field at ${payload.ts / 1000}, one and only one of 'local' and 'global' should be present.`); |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel} tracingModel |
@@ -146,14 +146,14 @@ WebInspector.TracingModel.browserMainThread = function(tracingModel) |
return tracingStartedInBrowser[0].thread; |
WebInspector.console.error("Failed to find browser main thread in trace, some timeline features may be unavailable"); |
return null; |
-} |
+}; |
/** |
* @interface |
*/ |
WebInspector.BackingStorage = function() |
{ |
-} |
+}; |
WebInspector.BackingStorage.prototype = { |
/** |
@@ -170,7 +170,7 @@ WebInspector.BackingStorage.prototype = { |
finishWriting: function() { }, |
reset: function() { }, |
-} |
+}; |
WebInspector.TracingModel.prototype = { |
@@ -490,7 +490,7 @@ WebInspector.TracingModel.prototype = { |
} |
return parsedCategories; |
} |
-} |
+}; |
/** |
* @constructor |
@@ -532,7 +532,7 @@ WebInspector.TracingModel.Event = function(categories, name, phase, startTime, t |
/** @type {number} */ |
this.selfTime = 0; |
-} |
+}; |
/** |
* @param {!WebInspector.TracingManager.EventPayload} payload |
@@ -555,7 +555,7 @@ WebInspector.TracingModel.Event.fromPayload = function(payload, thread) |
event.bind_id = payload.bind_id; |
return event; |
-} |
+}; |
WebInspector.TracingModel.Event.prototype = { |
/** |
@@ -611,7 +611,7 @@ WebInspector.TracingModel.Event.prototype = { |
_setBackingStorage: function(backingStorage) |
{ |
} |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel.Event} a |
@@ -621,7 +621,7 @@ WebInspector.TracingModel.Event.prototype = { |
WebInspector.TracingModel.Event.compareStartTime = function(a, b) |
{ |
return a.startTime - b.startTime; |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel.Event} a |
@@ -631,7 +631,7 @@ WebInspector.TracingModel.Event.compareStartTime = function(a, b) |
WebInspector.TracingModel.Event.compareStartAndEndTime = function(a, b) |
{ |
return a.startTime - b.startTime || (b.endTime !== undefined && a.endTime !== undefined && b.endTime - a.endTime) || 0; |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel.Event} a |
@@ -644,7 +644,7 @@ WebInspector.TracingModel.Event.orderedCompareStartTime = function(a, b) |
// To change this behavior this comparator return -1 in the case events |
// startTime's are equal, so both events got placed into the result array. |
return a.startTime - b.startTime || a.ordinal - b.ordinal || -1; |
-} |
+}; |
/** |
* @constructor |
@@ -657,7 +657,7 @@ WebInspector.TracingModel.Event.orderedCompareStartTime = function(a, b) |
WebInspector.TracingModel.ObjectSnapshot = function(category, name, startTime, thread) |
{ |
WebInspector.TracingModel.Event.call(this, category, name, WebInspector.TracingModel.Phase.SnapshotObject, startTime, thread); |
-} |
+}; |
/** |
* @param {!WebInspector.TracingManager.EventPayload} payload |
@@ -677,7 +677,7 @@ WebInspector.TracingModel.ObjectSnapshot.fromPayload = function(payload, thread) |
if (payload.args) |
snapshot.addArgs(payload.args); |
return snapshot; |
-} |
+}; |
WebInspector.TracingModel.ObjectSnapshot.prototype = { |
/** |
@@ -733,7 +733,7 @@ WebInspector.TracingModel.ObjectSnapshot.prototype = { |
}, |
__proto__: WebInspector.TracingModel.Event.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -742,10 +742,10 @@ WebInspector.TracingModel.ObjectSnapshot.prototype = { |
*/ |
WebInspector.TracingModel.AsyncEvent = function(startEvent) |
{ |
- WebInspector.TracingModel.Event.call(this, startEvent.categoriesString, startEvent.name, startEvent.phase, startEvent.startTime, startEvent.thread) |
+ WebInspector.TracingModel.Event.call(this, startEvent.categoriesString, startEvent.name, startEvent.phase, startEvent.startTime, startEvent.thread); |
this.addArgs(startEvent.args); |
this.steps = [startEvent]; |
-} |
+}; |
WebInspector.TracingModel.AsyncEvent.prototype = { |
/** |
@@ -763,7 +763,7 @@ WebInspector.TracingModel.AsyncEvent.prototype = { |
}, |
__proto__: WebInspector.TracingModel.Event.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -773,7 +773,7 @@ WebInspector.TracingModel.ProfileEventsGroup = function(event) |
{ |
/** @type {!Array<!WebInspector.TracingModel.Event>} */ |
this.children = [event]; |
-} |
+}; |
WebInspector.TracingModel.ProfileEventsGroup.prototype = { |
/** |
@@ -783,14 +783,14 @@ WebInspector.TracingModel.ProfileEventsGroup.prototype = { |
{ |
this.children.push(event); |
} |
-} |
+}; |
/** |
* @constructor |
*/ |
WebInspector.TracingModel.NamedObject = function() |
{ |
-} |
+}; |
WebInspector.TracingModel.NamedObject.prototype = |
{ |
@@ -817,7 +817,7 @@ WebInspector.TracingModel.NamedObject.prototype = |
{ |
this._sortIndex = sortIndex; |
}, |
-} |
+}; |
/** |
* @param {!Array.<!WebInspector.TracingModel.NamedObject>} array |
@@ -833,7 +833,7 @@ WebInspector.TracingModel.NamedObject._sort = function(array) |
return a._sortIndex !== b._sortIndex ? a._sortIndex - b._sortIndex : a.name().localeCompare(b.name()); |
} |
return array.sort(comparator); |
-} |
+}; |
/** |
* @constructor |
@@ -850,7 +850,7 @@ WebInspector.TracingModel.Process = function(model, id) |
this._threads = new Map(); |
this._threadByName = new Map(); |
this._model = model; |
-} |
+}; |
WebInspector.TracingModel.Process.prototype = { |
/** |
@@ -911,7 +911,7 @@ WebInspector.TracingModel.Process.prototype = { |
}, |
__proto__: WebInspector.TracingModel.NamedObject.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -928,7 +928,7 @@ WebInspector.TracingModel.Thread = function(process, id) |
this._asyncEvents = []; |
this._id = id; |
this._model = process._model; |
-} |
+}; |
WebInspector.TracingModel.Thread.prototype = { |
tracingComplete: function() |
@@ -1032,4 +1032,4 @@ WebInspector.TracingModel.Thread.prototype = { |
}, |
__proto__: WebInspector.TracingModel.NamedObject.prototype |
-} |
+}; |