Changeset 244199 in webkit


Ignore:
Timestamp:
Apr 11, 2019 3:56:40 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION(r244195): Timelines: unable to take heap snapshot
https://bugs.webkit.org/show_bug.cgi?id=196832
<rdar://problem/49828862>

Reviewed by Simon Fraser.

  • UserInterface/Controllers/TimelineManager.js:

(WI.TimelineManager.prototype.heapSnapshotAdded):
(WI.TimelineManager.prototype._addRecord):
Heap snapshots can be taken outside of a timeline recording, so remove the early return (and
assertion) that checks for an active recording before adding the heap snapshot record.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r244195 r244199  
     12019-04-11  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(r244195): Timelines: unable to take heap snapshot
     4        https://bugs.webkit.org/show_bug.cgi?id=196832
     5        <rdar://problem/49828862>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * UserInterface/Controllers/TimelineManager.js:
     10        (WI.TimelineManager.prototype.heapSnapshotAdded):
     11        (WI.TimelineManager.prototype._addRecord):
     12        Heap snapshots can be taken outside of a timeline recording, so remove the early return (and
     13        assertion) that checks for an active recording before adding the heap snapshot record.
     14
    1152019-04-11  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js

    r244195 r244199  
    583583        // Called from WI.HeapAllocationsInstrument.
    584584
    585         console.assert(this.isCapturing());
    586         if (!this.isCapturing())
    587             return;
    588 
    589585        this._addRecord(new WI.HeapAllocationsTimelineRecord(timestamp, snapshot));
    590586    }
     
    861857    _addRecord(record)
    862858    {
    863         console.assert(this.isCapturing());
    864 
    865859        this._activeRecording.addRecord(record);
    866860
Note: See TracChangeset for help on using the changeset viewer.