Changeset 226151 in webkit


Ignore:
Timestamp:
Dec 19, 2017, 3:40:16 PM (7 years ago)
Author:
Joseph Pecoraro
Message:

Web Inspector: Network Table - Update the Time column to include the total duration not just the download duration
https://bugs.webkit.org/show_bug.cgi?id=180998
<rdar://problem/36140424>

Reviewed by Matt Baker.

  • UserInterface/Models/Resource.js:

(WI.Resource.prototype.get totalDuration):
(WI.Resource.prototype.get duration): Deleted.
Rename and group getters to be clearer.

  • UserInterface/Views/NetworkTableContentView.js:

(WI.NetworkTableContentView.prototype._entryForResource):
Use the totalDuration for the network table time column.

  • UserInterface/Views/ResourceTimelineDataGridNode.js:

(WI.ResourceTimelineDataGridNode.prototype._mouseoverRecordBar graphDataSource.get secondsPerPixel):
Using the download duration was incorrect here.

Location:
trunk/Source/WebInspectorUI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r226149 r226151  
     12017-12-19  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Network Table - Update the Time column to include the total duration not just the download duration
     4        https://bugs.webkit.org/show_bug.cgi?id=180998
     5        <rdar://problem/36140424>
     6
     7        Reviewed by Matt Baker.
     8
     9        * UserInterface/Models/Resource.js:
     10        (WI.Resource.prototype.get totalDuration):
     11        (WI.Resource.prototype.get duration): Deleted.
     12        Rename and group getters to be clearer.
     13
     14        * UserInterface/Views/NetworkTableContentView.js:
     15        (WI.NetworkTableContentView.prototype._entryForResource):
     16        Use the totalDuration for the network table time column.
     17
     18        * UserInterface/Views/ResourceTimelineDataGridNode.js:
     19        (WI.ResourceTimelineDataGridNode.prototype._mouseoverRecordBar graphDataSource.get secondsPerPixel):
     20        Using the download duration was incorrect here.
     21
    1222017-12-19  Devin Rousso  <webkit@devinrousso.com>
    223
  • trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js

    r225546 r226151  
    533533    }
    534534
    535     get duration()
    536     {
    537         return this.timingData.responseEnd - this.timingData.requestStart;
    538     }
    539 
    540535    get latency()
    541536    {
     
    546541    {
    547542        return this.timingData.responseEnd - this.timingData.responseStart;
     543    }
     544
     545    get totalDuration()
     546    {
     547        return this.timingData.responseEnd - this.timingData.startTime;
    548548    }
    549549
  • trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js

    r226070 r226151  
    11971197            resourceSize: resource.size,
    11981198            transferSize: !isNaN(resource.networkTotalTransferSize) ? resource.networkTotalTransferSize : resource.estimatedTotalTransferSize,
    1199             time: resource.duration,
     1199            time: resource.totalDuration,
    12001200            protocol: resource.protocol,
    12011201            priority: resource.priority,
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceTimelineDataGridNode.js

    r224595 r226151  
    385385
    386386            let graphDataSource = {
    387                 get secondsPerPixel() { return resource.duration / WI.ResourceTimelineDataGridNode.PopoverGraphColumnWidthPixels; },
     387                get secondsPerPixel() { return resource.totalDuration / WI.ResourceTimelineDataGridNode.PopoverGraphColumnWidthPixels; },
    388388                get zeroTime() { return resource.firstTimestamp; },
    389389                get startTime() { return resource.firstTimestamp; },
Note: See TracChangeset for help on using the changeset viewer.