Title: [241301] trunk/Source/WebInspectorUI
Revision
241301
Author
[email protected]
Date
2019-02-12 10:21:58 -0800 (Tue, 12 Feb 2019)

Log Message

Web Inspector: Remove unused maxUsage in CPUTimelineView
https://bugs.webkit.org/show_bug.cgi?id=194526

Patch by Joseph Pecoraro <[email protected]> on 2019-02-12
Reviewed by Devin Rousso.

* UserInterface/Views/CPUTimelineView.js:
(WI.CPUTimelineView):
(WI.CPUTimelineView.prototype.shown):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (241300 => 241301)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-02-12 18:21:45 UTC (rev 241300)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-02-12 18:21:58 UTC (rev 241301)
@@ -1,3 +1,14 @@
+2019-02-12  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Remove unused maxUsage in CPUTimelineView
+        https://bugs.webkit.org/show_bug.cgi?id=194526
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Views/CPUTimelineView.js:
+        (WI.CPUTimelineView):
+        (WI.CPUTimelineView.prototype.shown):
+
 2019-02-11  Devin Rousso  <[email protected]>
 
         Web Inspector: add context menu items to copy a resource's HTTP request/response data

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js (241300 => 241301)


--- trunk/Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js	2019-02-12 18:21:45 UTC (rev 241300)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js	2019-02-12 18:21:58 UTC (rev 241301)
@@ -32,7 +32,6 @@
         super(timeline, extraArguments);
 
         this._recording = extraArguments.recording;
-        this._maxUsage = -Infinity;
 
         this.element.classList.add("cpu");
 
@@ -78,8 +77,6 @@
     {
         super.reset();
 
-        this._maxUsage = -Infinity;
-
         this.clear();
     }
 
@@ -195,8 +192,6 @@
         let cpuTimelineRecord = event.data.record;
         console.assert(cpuTimelineRecord instanceof WI.CPUTimelineRecord);
 
-        this._maxUsage = Math.max(this._maxUsage, cpuTimelineRecord.usage);
-
         if (cpuTimelineRecord.startTime >= this.startTime && cpuTimelineRecord.endTime <= this.endTime)
             this.needsLayout();
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to