Commit d87ab22e authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

heap: Enable scopes in atomic pause

Otherwise, they are not considered on benchmarks.

Bug: 948807
Change-Id: I9b4b6b4d6cc1ed1e6dd65f804e1bfe4d06b0ba4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706505
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678280}
parent 86cd32b6
......@@ -851,7 +851,7 @@ void ThreadState::FinishSnapshot() {
void ThreadState::AtomicPauseMarkPrologue(BlinkGC::StackState stack_state,
BlinkGC::MarkingType marking_type,
BlinkGC::GCReason reason) {
ThreadHeapStatsCollector::Scope mark_prologue_scope(
ThreadHeapStatsCollector::EnabledScope mark_prologue_scope(
Heap().stats_collector(),
ThreadHeapStatsCollector::kAtomicPauseMarkPrologue, "epoch", gc_age_,
"forced", reason == BlinkGC::GCReason::kForcedGCForTesting);
......@@ -1439,7 +1439,7 @@ void ThreadState::CollectGarbage(BlinkGC::StackState stack_state,
void ThreadState::AtomicPauseMarkRoots(BlinkGC::StackState stack_state,
BlinkGC::MarkingType marking_type,
BlinkGC::GCReason reason) {
ThreadHeapStatsCollector::Scope advance_tracing_scope(
ThreadHeapStatsCollector::EnabledScope advance_tracing_scope(
Heap().stats_collector(), ThreadHeapStatsCollector::kAtomicPauseMarkRoots,
"epoch", gc_age_, "forced",
current_gc_data_.reason == BlinkGC::GCReason::kForcedGCForTesting);
......@@ -1448,7 +1448,7 @@ void ThreadState::AtomicPauseMarkRoots(BlinkGC::StackState stack_state,
}
void ThreadState::AtomicPauseMarkTransitiveClosure() {
ThreadHeapStatsCollector::Scope advance_tracing_scope(
ThreadHeapStatsCollector::EnabledScope advance_tracing_scope(
Heap().stats_collector(),
ThreadHeapStatsCollector::kAtomicPauseMarkTransitiveClosure, "epoch",
gc_age_, "forced",
......@@ -1457,7 +1457,7 @@ void ThreadState::AtomicPauseMarkTransitiveClosure() {
}
void ThreadState::AtomicPauseMarkEpilogue(BlinkGC::MarkingType marking_type) {
ThreadHeapStatsCollector::Scope stats_scope(
ThreadHeapStatsCollector::EnabledScope stats_scope(
Heap().stats_collector(),
ThreadHeapStatsCollector::kAtomicPauseMarkEpilogue, "epoch", gc_age_,
"forced",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment