+2013-08-13 Arunprasad Rajkumar <arurajku@cisco.com>
+
+ [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places
+ https://bugs.webkit.org/show_bug.cgi?id=119762
+
+ Reviewed by Geoffrey Garen.
+
+ * heap/Heap.cpp:
+ (JSC::Heap::Heap):
+ (JSC::Heap::markRoots):
+ (JSC::Heap::collect):
+ * jsc.cpp:
+ (StopWatch::start):
+ (StopWatch::stop):
+ * testRegExp.cpp:
+ (StopWatch::start):
+ (StopWatch::stop):
+
2013-08-13 Julien Brianceau <jbrianceau@nds.com>
[sh4] Prepare LLINT for DFG_JIT implementation.
struct GCTimerScope {
GCTimerScope(GCTimer* timer)
: m_timer(timer)
- , m_start(WTF::currentTime())
+ , m_start(WTF::monotonicallyIncreasingTime())
{
}
~GCTimerScope()
{
- double delta = WTF::currentTime() - m_start;
+ double delta = WTF::monotonicallyIncreasingTime() - m_start;
if (delta < m_timer->m_min)
m_timer->m_min = delta;
if (delta > m_timer->m_max)
, m_isSafeToCollect(false)
, m_vm(vm)
, m_lastGCLength(0)
- , m_lastCodeDiscardTime(WTF::currentTime())
+ , m_lastCodeDiscardTime(WTF::monotonicallyIncreasingTime())
, m_activityCallback(DefaultGCActivityCallback::create(this))
, m_sweeper(IncrementalSweeper::create(this))
, m_deferralDepth(0)
ASSERT(isValidThreadState(m_vm));
#if ENABLE(OBJECT_MARK_LOGGING)
- double gcStartTime = WTF::currentTime();
+ double gcStartTime = WTF::monotonicallyIncreasingTime();
#endif
void* dummy;
#if ENABLE(PARALLEL_GC)
visitCount += m_sharedData.childVisitCount();
#endif
- MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF::currentTime() - gcStartTime);
+ MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF::monotonicallyIncreasingTime() - gcStartTime);
#endif
visitor.reset();
m_activityCallback->willCollect();
- double lastGCStartTime = WTF::currentTime();
+ double lastGCStartTime = WTF::monotonicallyIncreasingTime();
if (lastGCStartTime - m_lastCodeDiscardTime > minute) {
deleteAllCompiledCode();
- m_lastCodeDiscardTime = WTF::currentTime();
+ m_lastCodeDiscardTime = WTF::monotonicallyIncreasingTime();
}
{
m_bytesAllocatedLimit = maxHeapSize - currentHeapSize;
m_bytesAllocated = 0;
- double lastGCEndTime = WTF::currentTime();
+ double lastGCEndTime = WTF::monotonicallyIncreasingTime();
m_lastGCLength = lastGCEndTime - lastGCStartTime;
if (Options::recordGCPauseTimes())
+2013-08-13 Arunprasad Rajkumar <arurajku@cisco.com>
+
+ [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places
+ https://bugs.webkit.org/show_bug.cgi?id=119762
+
+ Reviewed by Geoffrey Garen.
+
+ * wtf/MainThread.cpp:
+ (WTF::dispatchFunctionsFromMainThread):
+
2013-08-12 Ragner Magalhaes <ranger.n@samsung.com>
Broken build with build-webkit --no-webgl
if (callbacksPaused)
return;
- double startTime = currentTime();
+ double startTime = monotonicallyIncreasingTime();
FunctionWithContext invocation;
while (true) {
// yield so the user input can be processed. Otherwise user may not be able to even close the window.
// This code has effect only in case the scheduleDispatchFunctionsOnMainThread() is implemented in a way that
// allows input events to be processed before we are back here.
- if (currentTime() - startTime > maxRunLoopSuspensionTime) {
+ if (monotonicallyIncreasingTime() - startTime > maxRunLoopSuspensionTime) {
scheduleDispatchFunctionsOnMainThread();
break;
}