| OLD | NEW |
| 1 var initialize_Timeline = function() { | 1 var initialize_Timeline = function() { |
| 2 | 2 |
| 3 // Scrub values when printing out these properties in the record or data field. | 3 // Scrub values when printing out these properties in the record or data field. |
| 4 InspectorTest.timelinePropertyFormatters = { | 4 InspectorTest.timelinePropertyFormatters = { |
| 5 children: "formatAsTypeName", | 5 children: "formatAsTypeName", |
| 6 endTime: "formatAsTypeName", | 6 endTime: "formatAsTypeName", |
| 7 requestId: "formatAsTypeName", | 7 requestId: "formatAsTypeName", |
| 8 startTime: "formatAsTypeName", | 8 startTime: "formatAsTypeName", |
| 9 stackTrace: "formatAsTypeName", | 9 stackTrace: "formatAsTypeName", |
| 10 url: "formatAsURL", | 10 url: "formatAsURL", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 InspectorTest.timelineModel = function() | 37 InspectorTest.timelineModel = function() |
| 38 { | 38 { |
| 39 return WebInspector.panels.timeline._model; | 39 return WebInspector.panels.timeline._model; |
| 40 } | 40 } |
| 41 | 41 |
| 42 InspectorTest.startTimeline = function(callback) | 42 InspectorTest.startTimeline = function(callback) |
| 43 { | 43 { |
| 44 InspectorTest._timelineRecords = []; | 44 InspectorTest._timelineRecords = []; |
| 45 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled =
true; | 45 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled =
true; |
| 46 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru
e; | 46 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru
e; |
| 47 TimelineAgent.start(5, false, true, false, callback); | 47 TimelineAgent.start(5, false, undefined, true, false, callback); |
| 48 function addRecord(record) | 48 function addRecord(record) |
| 49 { | 49 { |
| 50 InspectorTest._timelineRecords.push(record); | 50 InspectorTest._timelineRecords.push(record); |
| 51 for (var i = 0; record.children && i < record.children.length; ++i) | 51 for (var i = 0; record.children && i < record.children.length; ++i) |
| 52 addRecord(record.children[i]); | 52 addRecord(record.children[i]); |
| 53 } | 53 } |
| 54 InspectorTest._addTimelineEvent = function(event) | 54 InspectorTest._addTimelineEvent = function(event) |
| 55 { | 55 { |
| 56 addRecord(event.data); | 56 addRecord(event.data); |
| 57 } | 57 } |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 return this._fileSize; | 286 return this._fileSize; |
| 287 }, | 287 }, |
| 288 | 288 |
| 289 fileName: function() | 289 fileName: function() |
| 290 { | 290 { |
| 291 return "fakeFile"; | 291 return "fakeFile"; |
| 292 } | 292 } |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 }; | 295 }; |
| OLD | NEW |