OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 | 44 |
45 this._detailsLinkifier = new WebInspector.Linkifier(); | 45 this._detailsLinkifier = new WebInspector.Linkifier(); |
46 this._windowStartTime = 0; | 46 this._windowStartTime = 0; |
47 this._windowEndTime = Infinity; | 47 this._windowEndTime = Infinity; |
48 | 48 |
49 // Create model. | 49 // Create model. |
50 this._tracingManager = new WebInspector.TracingManager(); | 50 this._tracingManager = new WebInspector.TracingManager(); |
51 this._tracingManager.addEventListener(WebInspector.TracingManager.Events.Buf ferUsage, this._onTracingBufferUsage, this); | 51 this._tracingManager.addEventListener(WebInspector.TracingManager.Events.Buf ferUsage, this._onTracingBufferUsage, this); |
52 | 52 |
53 this._tracingModel = new WebInspector.TracingModel(); | 53 this._tracingModel = new WebInspector.TracingModel(); |
54 this._tracingTimelineModel = new WebInspector.TracingTimelineModel(this._tra cingManager, this._tracingModel, WebInspector.TimelineUIUtils.hiddenRecordsFilte r()); | 54 this._tracingTimelineModel = new WebInspector.TimelineModel(this._tracingMan ager, this._tracingModel, WebInspector.TimelineUIUtils.hiddenRecordsFilter()); |
loislo
2014/11/11 12:33:06
this._timelineModel
yurys
2014/11/11 13:41:25
Done.
| |
55 this._model = this._tracingTimelineModel; | 55 this._model = this._tracingTimelineModel; |
56 | 56 |
57 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this); | 57 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this); |
58 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStop ped, this._onRecordingStopped, this); | 58 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStop ped, this._onRecordingStopped, this); |
59 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordsCleare d, this._onRecordsCleared, this); | 59 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordsCleare d, this._onRecordsCleared, this); |
60 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordFilterC hanged, this._refreshViews, this); | 60 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordFilterC hanged, this._refreshViews, this); |
61 | 61 |
62 this._categoryFilter = new WebInspector.TimelineCategoryFilter(); | 62 this._categoryFilter = new WebInspector.TimelineCategoryFilter(); |
63 this._durationFilter = new WebInspector.TimelineIsLongFilter(); | 63 this._durationFilter = new WebInspector.TimelineIsLongFilter(); |
64 this._textFilter = new WebInspector.TimelineTextFilter(); | 64 this._textFilter = new WebInspector.TimelineTextFilter(); |
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1469 | 1469 |
1470 WebInspector.TimelinePanelFactory.prototype = { | 1470 WebInspector.TimelinePanelFactory.prototype = { |
1471 /** | 1471 /** |
1472 * @return {!WebInspector.Panel} | 1472 * @return {!WebInspector.Panel} |
1473 */ | 1473 */ |
1474 createPanel: function() | 1474 createPanel: function() |
1475 { | 1475 { |
1476 return WebInspector.TimelinePanel._instance(); | 1476 return WebInspector.TimelinePanel._instance(); |
1477 } | 1477 } |
1478 } | 1478 } |
OLD | NEW |