DFG compile time measurements should really report milliseconds
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Mar 2015 04:33:28 +0000 (04:33 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Mar 2015 04:33:28 +0000 (04:33 +0000)
commitc00a13c9c0e988cb878a0cee86aa1a97d35cb409
treeb23713a6db11df7e0550ba8ed7e9a79d34c89fd0
parent91920ec30fe6cb5c0fb639c5c6a7e82079a99693
DFG compile time measurements should really report milliseconds
https://bugs.webkit.org/show_bug.cgi?id=142209

Reviewed by Benjamin Poulain.

Source/JavaScriptCore:

Fix this to record milliseconds instead of seconds.

* dfg/DFGPlan.cpp:
(JSC::DFG::Plan::compileInThread):
(JSC::DFG::Plan::compileInThreadImpl):

Source/WTF:

This bug was introduced because currentTimeMS() calls were converted to
monotonicallyIncreasingTime() calls. Perhaps this bug would be less likely if there was a
monotonicallyIncreasingTimeMS() function available, so this patch adds it.

* wtf/CurrentTime.h:
(WTF::monotonicallyIncreasingTimeMS):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGPlan.cpp
Source/WTF/ChangeLog
Source/WTF/wtf/CurrentTime.h