Changeset 201503 in webkit
- Timestamp:
- May 30, 2016, 8:25:40 PM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Models/ProfileNode.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r201502 r201503 1 2016-05-30 Brian Burg <bburg@apple.com> 2 3 Web Inspector: Timelines: "-0.000ms" in Self Time 4 https://bugs.webkit.org/show_bug.cgi?id=158162 5 <rdar://problem/26523350> 6 7 Reviewed by Darin Adler. 8 9 Values such as -0.0000 and +0.00001 seem to indicate there is 10 some floating point error accumulating in profile node data. 11 Since the sampling profiler isn't accurate to that precision, 12 let's clean up the data so near-zero numbers are simply zero. 13 14 * UserInterface/Models/ProfileNode.js: 15 Round selfTime down to zero if it's less than the 16 smallest value we would show in the user interface. 17 1 18 2016-05-30 Brian Burg <bburg@apple.com> 2 19 -
trunk/Source/WebInspectorUI/UserInterface/Models/ProfileNode.js
r188993 r201503 159 159 childNodesTotalTime += childNode.totalTime; 160 160 this._selfTime = this._totalTime - childNodesTotalTime; 161 // selfTime can negative or very close to zero due to floating point error. 162 // Since we show at most four decimal places, treat anything less as zero. 163 if (this._selfTime < 0.0001) 164 this._selfTime = 0.0; 161 165 } 162 166
Note:
See TracChangeset
for help on using the changeset viewer.