Index: Source/platform/heap/ThreadState.cpp |
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp |
index b90d493bf63ac4bf71a69da752add1a52661eee5..c856bc8a38594729d1ad481150950835fe65f136 100644 |
--- a/Source/platform/heap/ThreadState.cpp |
+++ b/Source/platform/heap/ThreadState.cpp |
@@ -570,7 +570,10 @@ void ThreadState::visitStack(Visitor* visitor) |
void ThreadState::visitPersistents(Visitor* visitor) |
{ |
m_persistents->trace(visitor); |
- WrapperPersistentRegion::trace(m_liveWrapperPersistents, visitor); |
+ { |
+ TRACE_EVENT0("blink_gc", "WrapperPersistentRegion::trace"); |
+ WrapperPersistentRegion::trace(m_liveWrapperPersistents, visitor); |
+ } |
} |
#if ENABLE(GC_PROFILE_MARKING) |
@@ -1042,7 +1045,11 @@ public: |
m_threadState->unregisterSweepingTask(); |
} |
- virtual void run() { m_heap->sweep(m_stats); } |
+ virtual void run() |
+ { |
+ TRACE_EVENT0("blink_gc", "ThreadState::sweepNonFinalizedHeaps"); |
+ m_heap->sweep(m_stats); |
+ } |
private: |
ThreadState* m_threadState; |