Changeset 246292 in webkit
- Timestamp:
- Jun 10, 2019 4:15:41 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r246279 r246292 1 2019-06-10 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Timelines: imported recordings do not have JavaScript call trees 4 https://bugs.webkit.org/show_bug.cgi?id=197490 5 <rdar://problem/50589158> 6 7 Reviewed by Joseph Pecoraro. 8 9 * UserInterface/Models/TimelineRecording.js: 10 (WI.TimelineRecording.prototype.initializeCallingContextTrees): 11 Make sure to actually save the provided stack traces and samples in the export data. 12 13 * UserInterface/Models/ScriptTimelineRecord.js: 14 (WI.ScriptTimelineRecord.fromJSON): 15 (WI.ScriptTimelineRecord.prototype.toJSON): 16 Drive-by: include `extraDetails`, which contains useful information like "default prevented". 17 1 18 2019-06-10 Nikita Vasilyev <nvasilyev@apple.com> 2 19 -
trunk/Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js
r243269 r246292 54 54 static fromJSON(json) 55 55 { 56 let {eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload } = json;56 let {eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload, extraDetails} = json; 57 57 58 58 if (typeof details === "object" && details.__type === "GarbageCollection") 59 59 details = WI.GarbageCollection.fromJSON(details); 60 60 61 return new WI.ScriptTimelineRecord(eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload );61 return new WI.ScriptTimelineRecord(eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload, extraDetails); 62 62 } 63 63 … … 66 66 // FIXME: CallFrames 67 67 // FIXME: SourceCodeLocation 68 // FIXME: profilePayload 68 69 69 70 return { … … 73 74 endTime: this.endTime, 74 75 details: this._details, 76 extraDetails: this._extraDetails, 75 77 }; 76 78 } -
trunk/Source/WebInspectorUI/UserInterface/Models/TimelineRecording.js
r244933 r246292 432 432 initializeCallingContextTrees(stackTraces, sampleDurations) 433 433 { 434 this._exportDataSampleStackTraces .concat(stackTraces);435 this._exportDataSampleDurations .concat(sampleDurations);434 this._exportDataSampleStackTraces = this._exportDataSampleStackTraces.concat(stackTraces); 435 this._exportDataSampleDurations = this._exportDataSampleDurations.concat(sampleDurations); 436 436 437 437 for (let i = 0; i < stackTraces.length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.