Index: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js |
index 36c86326b61652606a7e68f1ebc99fc6177e1d7d..81f9de8e1b0c5b28cffb80c221c42839654cb688 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js |
@@ -36,7 +36,7 @@ WebInspector.TimelineModel = function(eventFilter) |
{ |
this._eventFilter = eventFilter; |
this.reset(); |
-} |
+}; |
/** |
* @enum {string} |
@@ -163,7 +163,7 @@ WebInspector.TimelineModel.RecordType = { |
// serialization of CPU Profiles within tracing timeline data. |
CpuProfile: "CpuProfile", |
Profile: "Profile" |
-} |
+}; |
WebInspector.TimelineModel.Category = { |
Console: "blink.console", |
@@ -179,7 +179,7 @@ WebInspector.TimelineModel.WarningType = { |
ForcedLayout: "ForcedLayout", |
IdleDeadlineExceeded: "IdleDeadlineExceeded", |
V8Deopt: "V8Deopt" |
-} |
+}; |
WebInspector.TimelineModel.MainThreadName = "main"; |
WebInspector.TimelineModel.WorkerThreadName = "DedicatedWorker Thread"; |
@@ -227,7 +227,7 @@ WebInspector.TimelineModel.forEachEvent = function(events, onStartEvent, onEndEv |
} |
while (stack.length) |
onEndEvent(stack.pop()); |
-} |
+}; |
WebInspector.TimelineModel.DevToolsMetadataEvent = { |
TracingStartedInBrowser: "TracingStartedInBrowser", |
@@ -246,7 +246,7 @@ WebInspector.TimelineModel.VirtualThread = function(name) |
this.events = []; |
/** @type {!Map<!WebInspector.TimelineModel.AsyncEventGroup, !Array<!WebInspector.TracingModel.AsyncEvent>>} */ |
this.asyncEventsByGroup = new Map(); |
-} |
+}; |
WebInspector.TimelineModel.VirtualThread.prototype = { |
/** |
@@ -256,7 +256,7 @@ WebInspector.TimelineModel.VirtualThread.prototype = { |
{ |
return this.name === WebInspector.TimelineModel.WorkerThreadName; |
} |
-} |
+}; |
/** |
* @constructor |
@@ -266,7 +266,7 @@ WebInspector.TimelineModel.Record = function(traceEvent) |
{ |
this._event = traceEvent; |
this._children = []; |
-} |
+}; |
/** |
* @param {!WebInspector.TimelineModel.Record} a |
@@ -277,7 +277,7 @@ WebInspector.TimelineModel.Record._compareStartTime = function(a, b) |
{ |
// Never return 0 as otherwise equal records would be merged. |
return a.startTime() <= b.startTime() ? -1 : 1; |
-} |
+}; |
WebInspector.TimelineModel.Record.prototype = { |
/** |
@@ -370,7 +370,7 @@ WebInspector.TimelineModel.Record.prototype = { |
this._children.push(child); |
child.parent = this; |
} |
-} |
+}; |
/** @typedef {!{page: !Array<!WebInspector.TracingModel.Event>, workers: !Array<!WebInspector.TracingModel.Event>}} */ |
WebInspector.TimelineModel.MetadataEvents; |
@@ -387,7 +387,7 @@ WebInspector.TimelineModel._eventType = function(event) |
if (event.hasCategory(WebInspector.TimelineModel.Category.LatencyInfo)) |
return WebInspector.TimelineModel.RecordType.LatencyInfo; |
return /** @type !WebInspector.TimelineModel.RecordType */ (event.name); |
-} |
+}; |
WebInspector.TimelineModel.prototype = { |
/** |
@@ -869,7 +869,7 @@ WebInspector.TimelineModel.prototype = { |
*/ |
_processAsyncEvents: function(asyncEventsByGroup, asyncEvents, startTime, endTime) |
{ |
- var i = startTime ? asyncEvents.lowerBound(startTime, function(time, asyncEvent) { return time - asyncEvent.startTime }) : 0; |
+ var i = startTime ? asyncEvents.lowerBound(startTime, function(time, asyncEvent) { return time - asyncEvent.startTime; }) : 0; |
for (; i < asyncEvents.length; ++i) { |
var asyncEvent = asyncEvents[i]; |
if (endTime && asyncEvent.startTime >= endTime) |
@@ -1328,7 +1328,7 @@ WebInspector.TimelineModel.prototype = { |
} |
return zeroStartRequestsList.concat(requestsList); |
}, |
-} |
+}; |
/** |
* @param {!Array<!WebInspector.TimelineModel.Filter>} filters |
@@ -1342,7 +1342,7 @@ WebInspector.TimelineModel.isVisible = function(filters, event) |
return false; |
} |
return true; |
-} |
+}; |
/** |
* @param {!WebInspector.TracingModel.Event} event |
@@ -1361,7 +1361,7 @@ WebInspector.TimelineModel.isMarkerEvent = function(event) |
default: |
return false; |
} |
-} |
+}; |
/** |
* @constructor |
@@ -1374,7 +1374,7 @@ WebInspector.TimelineModel.NetworkRequest = function(event) |
/** @type {!Array<!WebInspector.TracingModel.Event>} */ |
this.children = []; |
this.addEvent(event); |
-} |
+}; |
WebInspector.TimelineModel.NetworkRequest.prototype = { |
/** |
@@ -1399,14 +1399,14 @@ WebInspector.TimelineModel.NetworkRequest.prototype = { |
if (!this.requestMethod) |
this.requestMethod = eventData["requestMethod"]; |
} |
-} |
+}; |
/** |
* @constructor |
*/ |
WebInspector.TimelineModel.Filter = function() |
{ |
-} |
+}; |
WebInspector.TimelineModel.Filter.prototype = { |
/** |
@@ -1417,7 +1417,7 @@ WebInspector.TimelineModel.Filter.prototype = { |
{ |
return true; |
} |
-} |
+}; |
/** |
* @constructor |
@@ -1428,7 +1428,7 @@ WebInspector.TimelineVisibleEventsFilter = function(visibleTypes) |
{ |
WebInspector.TimelineModel.Filter.call(this); |
this._visibleTypes = new Set(visibleTypes); |
-} |
+}; |
WebInspector.TimelineVisibleEventsFilter.prototype = { |
/** |
@@ -1442,7 +1442,7 @@ WebInspector.TimelineVisibleEventsFilter.prototype = { |
}, |
__proto__: WebInspector.TimelineModel.Filter.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -1453,7 +1453,7 @@ WebInspector.ExclusiveNameFilter = function(excludeNames) |
{ |
WebInspector.TimelineModel.Filter.call(this); |
this._excludeNames = new Set(excludeNames); |
-} |
+}; |
WebInspector.ExclusiveNameFilter.prototype = { |
/** |
@@ -1467,7 +1467,7 @@ WebInspector.ExclusiveNameFilter.prototype = { |
}, |
__proto__: WebInspector.TimelineModel.Filter.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -1476,7 +1476,7 @@ WebInspector.ExclusiveNameFilter.prototype = { |
WebInspector.ExcludeTopLevelFilter = function() |
{ |
WebInspector.TimelineModel.Filter.call(this); |
-} |
+}; |
WebInspector.ExcludeTopLevelFilter.prototype = { |
/** |
@@ -1490,7 +1490,7 @@ WebInspector.ExcludeTopLevelFilter.prototype = { |
}, |
__proto__: WebInspector.TimelineModel.Filter.prototype |
-} |
+}; |
/** |
* @constructor |
@@ -1539,7 +1539,7 @@ WebInspector.InvalidationTrackingEvent = function(event) |
// FIXME: Move this to TimelineUIUtils.js. |
if (!this.cause.reason && this.cause.stackTrace && this.type === WebInspector.TimelineModel.RecordType.LayoutInvalidationTracking) |
this.cause.reason = "Layout forced"; |
-} |
+}; |
/** @typedef {{reason: string, stackTrace: ?Array<!RuntimeAgent.CallFrame>}} */ |
WebInspector.InvalidationCause; |
@@ -1550,7 +1550,7 @@ WebInspector.InvalidationCause; |
WebInspector.InvalidationTracker = function() |
{ |
this._initializePerFrameState(); |
-} |
+}; |
WebInspector.InvalidationTracker.prototype = { |
/** |
@@ -1799,7 +1799,7 @@ WebInspector.InvalidationTracker.prototype = { |
this._lastPaintWithLayer = undefined; |
this._didPaint = false; |
} |
-} |
+}; |
/** |
* @constructor |
@@ -1811,7 +1811,7 @@ WebInspector.TimelineAsyncEventTracker = function() |
this._initiatorByType = new Map(); |
for (var initiator of WebInspector.TimelineAsyncEventTracker._asyncEvents.keys()) |
this._initiatorByType.set(initiator, new Map()); |
-} |
+}; |
WebInspector.TimelineAsyncEventTracker._initialize = function() |
{ |
@@ -1834,7 +1834,7 @@ WebInspector.TimelineAsyncEventTracker._initialize = function() |
for (type of types) |
WebInspector.TimelineAsyncEventTracker._typeToInitiator.set(type, entry[0]); |
} |
-} |
+}; |
WebInspector.TimelineAsyncEventTracker.prototype = { |
/** |
@@ -1859,4 +1859,4 @@ WebInspector.TimelineAsyncEventTracker.prototype = { |
else |
event.initiator = initiatorMap.get(id) || null; |
} |
-} |
+}; |