Changeset 154032 in webkit
- Timestamp:
- Aug 13, 2013 5:51:25 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r154025 r154032 1 2013-08-13 Arunprasad Rajkumar <arurajku@cisco.com> 2 3 [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places 4 https://bugs.webkit.org/show_bug.cgi?id=119762 5 6 Reviewed by Geoffrey Garen. 7 8 * heap/Heap.cpp: 9 (JSC::Heap::Heap): 10 (JSC::Heap::markRoots): 11 (JSC::Heap::collect): 12 * jsc.cpp: 13 (StopWatch::start): 14 (StopWatch::stop): 15 * testRegExp.cpp: 16 (StopWatch::start): 17 (StopWatch::stop): 18 1 19 2013-08-13 Julien Brianceau <jbrianceau@nds.com> 2 20 -
trunk/Source/JavaScriptCore/heap/Heap.cpp
r153357 r154032 91 91 GCTimerScope(GCTimer* timer) 92 92 : m_timer(timer) 93 , m_start(WTF:: currentTime())93 , m_start(WTF::monotonicallyIncreasingTime()) 94 94 { 95 95 } 96 96 ~GCTimerScope() 97 97 { 98 double delta = WTF:: currentTime() - m_start;98 double delta = WTF::monotonicallyIncreasingTime() - m_start; 99 99 if (delta < m_timer->m_min) 100 100 m_timer->m_min = delta; … … 264 264 , m_vm(vm) 265 265 , m_lastGCLength(0) 266 , m_lastCodeDiscardTime(WTF:: currentTime())266 , m_lastCodeDiscardTime(WTF::monotonicallyIncreasingTime()) 267 267 , m_activityCallback(DefaultGCActivityCallback::create(this)) 268 268 , m_sweeper(IncrementalSweeper::create(this)) … … 434 434 435 435 #if ENABLE(OBJECT_MARK_LOGGING) 436 double gcStartTime = WTF:: currentTime();436 double gcStartTime = WTF::monotonicallyIncreasingTime(); 437 437 #endif 438 438 … … 591 591 visitCount += m_sharedData.childVisitCount(); 592 592 #endif 593 MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF:: currentTime() - gcStartTime);593 MARK_LOG_MESSAGE2("\nNumber of live Objects after full GC %lu, took %.6f secs\n", visitCount, WTF::monotonicallyIncreasingTime() - gcStartTime); 594 594 #endif 595 595 … … 727 727 m_activityCallback->willCollect(); 728 728 729 double lastGCStartTime = WTF:: currentTime();729 double lastGCStartTime = WTF::monotonicallyIncreasingTime(); 730 730 if (lastGCStartTime - m_lastCodeDiscardTime > minute) { 731 731 deleteAllCompiledCode(); 732 m_lastCodeDiscardTime = WTF:: currentTime();732 m_lastCodeDiscardTime = WTF::monotonicallyIncreasingTime(); 733 733 } 734 734 … … 798 798 799 799 m_bytesAllocated = 0; 800 double lastGCEndTime = WTF:: currentTime();800 double lastGCEndTime = WTF::monotonicallyIncreasingTime(); 801 801 m_lastGCLength = lastGCEndTime - lastGCStartTime; 802 802 -
trunk/Source/JavaScriptCore/jsc.cpp
r153218 r154032 172 172 void StopWatch::start() 173 173 { 174 m_startTime = currentTime();174 m_startTime = monotonicallyIncreasingTime(); 175 175 } 176 176 177 177 void StopWatch::stop() 178 178 { 179 m_stopTime = currentTime();179 m_stopTime = monotonicallyIncreasingTime(); 180 180 } 181 181 -
trunk/Source/JavaScriptCore/testRegExp.cpp
r148696 r154032 83 83 void StopWatch::start() 84 84 { 85 m_startTime = currentTime();85 m_startTime = monotonicallyIncreasingTime(); 86 86 } 87 87 88 88 void StopWatch::stop() 89 89 { 90 m_stopTime = currentTime();90 m_stopTime = monotonicallyIncreasingTime(); 91 91 } 92 92 -
trunk/Source/WTF/ChangeLog
r153951 r154032 1 2013-08-13 Arunprasad Rajkumar <arurajku@cisco.com> 2 3 [WTF] [JSC] Replace currentTime() with monotonicallyIncreasingTime() in all possible places 4 https://bugs.webkit.org/show_bug.cgi?id=119762 5 6 Reviewed by Geoffrey Garen. 7 8 * wtf/MainThread.cpp: 9 (WTF::dispatchFunctionsFromMainThread): 10 1 11 2013-08-12 Ragner Magalhaes <ranger.n@samsung.com> 2 12 -
trunk/Source/WTF/wtf/MainThread.cpp
r147755 r154032 142 142 return; 143 143 144 double startTime = currentTime();144 double startTime = monotonicallyIncreasingTime(); 145 145 146 146 FunctionWithContext invocation; … … 163 163 // This code has effect only in case the scheduleDispatchFunctionsOnMainThread() is implemented in a way that 164 164 // allows input events to be processed before we are back here. 165 if ( currentTime() - startTime > maxRunLoopSuspensionTime) {165 if (monotonicallyIncreasingTime() - startTime > maxRunLoopSuspensionTime) { 166 166 scheduleDispatchFunctionsOnMainThread(); 167 167 break;
Note: See TracChangeset
for help on using the changeset viewer.