Changeset 154032 in webkit for trunk/Source/JavaScriptCore/heap
- Timestamp:
- Aug 13, 2013, 5:51:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.