Changeset 246292 in webkit


Ignore:
Timestamp:
Jun 10, 2019 4:15:41 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Timelines: imported recordings do not have JavaScript call trees
https://bugs.webkit.org/show_bug.cgi?id=197490
<rdar://problem/50589158>

Reviewed by Joseph Pecoraro.

  • UserInterface/Models/TimelineRecording.js:

(WI.TimelineRecording.prototype.initializeCallingContextTrees):
Make sure to actually save the provided stack traces and samples in the export data.

  • UserInterface/Models/ScriptTimelineRecord.js:

(WI.ScriptTimelineRecord.fromJSON):
(WI.ScriptTimelineRecord.prototype.toJSON):
Drive-by: include extraDetails, which contains useful information like "default prevented".

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r246279 r246292  
     12019-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
    1182019-06-10  Nikita Vasilyev  <nvasilyev@apple.com>
    219
  • trunk/Source/WebInspectorUI/UserInterface/Models/ScriptTimelineRecord.js

    r243269 r246292  
    5454    static fromJSON(json)
    5555    {
    56         let {eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload} = json;
     56        let {eventType, startTime, endTime, callFrames, sourceCodeLocation, details, profilePayload, extraDetails} = json;
    5757
    5858        if (typeof details === "object" && details.__type === "GarbageCollection")
    5959            details = WI.GarbageCollection.fromJSON(details);
    6060
    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);
    6262    }
    6363
     
    6666        // FIXME: CallFrames
    6767        // FIXME: SourceCodeLocation
     68        // FIXME: profilePayload
    6869
    6970        return {
     
    7374            endTime: this.endTime,
    7475            details: this._details,
     76            extraDetails: this._extraDetails,
    7577        };
    7678    }
  • trunk/Source/WebInspectorUI/UserInterface/Models/TimelineRecording.js

    r244933 r246292  
    432432    initializeCallingContextTrees(stackTraces, sampleDurations)
    433433    {
    434         this._exportDataSampleStackTraces.concat(stackTraces);
    435         this._exportDataSampleDurations.concat(sampleDurations);
     434        this._exportDataSampleStackTraces = this._exportDataSampleStackTraces.concat(stackTraces);
     435        this._exportDataSampleDurations = this._exportDataSampleDurations.concat(sampleDurations);
    436436
    437437        for (let i = 0; i < stackTraces.length; i++) {
Note: See TracChangeset for help on using the changeset viewer.