RESOLVED FIXED 170725
[WebCore][JSC] ResourceUsageData.{timeOfNextEdenCollection,timeOfNextFullCollection} should be MonotonicTime
https://bugs.webkit.org/show_bug.cgi?id=170725
Summary [WebCore][JSC] ResourceUsageData.{timeOfNextEdenCollection,timeOfNextFullColl...
Yusuke Suzuki
Reported 2017-04-11 04:25:48 PDT
...
Attachments
Patch (13.16 KB, patch)
2017-04-11 09:18 PDT, Yusuke Suzuki
no flags
Patch (13.24 KB, patch)
2017-04-11 09:19 PDT, Yusuke Suzuki
sam: review+
Yusuke Suzuki
Comment 1 2017-04-11 09:18:25 PDT
Yusuke Suzuki
Comment 2 2017-04-11 09:19:15 PDT
Yusuke Suzuki
Comment 3 2017-04-11 09:22:48 PDT
Comment on attachment 306823 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306823&action=review > Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:481 > + MonotonicTime now = MonotonicTime::now(); Inside the timer, we usually use MonotonicTime. Thus, using MonotonicTime to calculate the difference should be appropriate instead of WallTime.
Sam Weinig
Comment 4 2017-04-11 10:39:41 PDT
Comment on attachment 306823 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306823&action=review > Source/WTF/wtf/MonotonicTime.h:49 > + constexpr MonotonicTime() { } Want to make a few tests that test constexpr MonotonicTime?
Yusuke Suzuki
Comment 5 2017-04-11 11:09:13 PDT
Comment on attachment 306823 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306823&action=review Thanks! > Source/JavaScriptCore/heap/GCActivityCallback.cpp:81 > + return MonotonicTime::fromRawSeconds(CFRunLoopTimerGetNextFireDate(m_timer.get())); Oops, I need to change this thing to MonotonicTime::now() + (CFRunLoopTimerGetNextFireDate(m_timer.get()) - CFAbsoluteTimeGetCurrent()). >> Source/WTF/wtf/MonotonicTime.h:49 >> + constexpr MonotonicTime() { } > > Want to make a few tests that test constexpr MonotonicTime? Added.
Yusuke Suzuki
Comment 6 2017-04-11 11:25:48 PDT
Yusuke Suzuki
Comment 8 2017-04-11 11:39:15 PDT
Note You need to log in before you can comment on or make changes to this bug.