Changeset 154032 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Aug 13, 2013, 5:51:25 PM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r154025 r154032 1 2013-08-13 Arunprasad Rajkumar <[email protected]> 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 <[email protected]> 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
Note:
See TracChangeset
for help on using the changeset viewer.