OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @extends {WebInspector.TimelineUIUtils} | 7 * @extends {WebInspector.TimelineUIUtils} |
8 */ | 8 */ |
9 WebInspector.TracingTimelineUIUtils = function() | 9 WebInspector.TracingTimelineUIUtils = function() |
10 { | 10 { |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 case recordTypes.MarkDOMContent: | 334 case recordTypes.MarkDOMContent: |
335 case recordTypes.MarkLoad: | 335 case recordTypes.MarkLoad: |
336 return event.args["data"]["isMainFrame"]; | 336 return event.args["data"]["isMainFrame"]; |
337 default: | 337 default: |
338 return false; | 338 return false; |
339 } | 339 } |
340 } | 340 } |
341 | 341 |
342 /** | 342 /** |
343 * @param {!WebInspector.TracingModel.Event} event | 343 * @param {!WebInspector.TracingModel.Event} event |
| 344 * @return {boolean} |
| 345 */ |
| 346 WebInspector.TracingTimelineUIUtils.isTallMarkerEvent = function(event) |
| 347 { |
| 348 return event.name !== WebInspector.TracingTimelineModel.RecordType.TimeStamp
; |
| 349 } |
| 350 |
| 351 /** |
| 352 * @param {!WebInspector.TracingModel.Event} event |
344 * @param {!WebInspector.Linkifier} linkifier | 353 * @param {!WebInspector.Linkifier} linkifier |
345 * @return {?Node} | 354 * @return {?Node} |
346 */ | 355 */ |
347 WebInspector.TracingTimelineUIUtils.buildDetailsNodeForTraceEvent = function(eve
nt, linkifier) | 356 WebInspector.TracingTimelineUIUtils.buildDetailsNodeForTraceEvent = function(eve
nt, linkifier) |
348 { | 357 { |
349 var recordType = WebInspector.TracingTimelineModel.RecordType; | 358 var recordType = WebInspector.TracingTimelineModel.RecordType; |
350 var target = event.thread.target(); | 359 var target = event.thread.target(); |
351 var details; | 360 var details; |
352 var detailsText; | 361 var detailsText; |
353 var eventData = event.args["data"]; | 362 var eventData = event.args["data"]; |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 return result; | 989 return result; |
981 } | 990 } |
982 | 991 |
983 /** | 992 /** |
984 * @return {!WebInspector.TracingTimelineModel.Filter} | 993 * @return {!WebInspector.TracingTimelineModel.Filter} |
985 */ | 994 */ |
986 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function() | 995 WebInspector.TracingTimelineUIUtils.hiddenEventsFilter = function() |
987 { | 996 { |
988 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns
pector.TracingTimelineUIUtils._visibleTypes()); | 997 return new WebInspector.TracingTimelineModel.InclusiveEventNameFilter(WebIns
pector.TracingTimelineUIUtils._visibleTypes()); |
989 } | 998 } |
OLD | NEW |