[heap] Add tracing scope to parallel scavenger.
Bug: chromium:758183 Change-Id: I5bfbff77562fdfd30587fdea475fb1b532e67b40 Reviewed-on: https://chromium-review.googlesource.com/809136 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#49888}
This commit is contained in:
parent
fc5b2ff106
commit
35870e79b0
@ -1909,7 +1909,9 @@ class ScavengingTask final : public ItemParallelJob::Task {
|
|||||||
barrier_(barrier) {}
|
barrier_(barrier) {}
|
||||||
|
|
||||||
void RunInParallel() final {
|
void RunInParallel() final {
|
||||||
// TODO(ulan): add GCTracer background scope.
|
GCTracer::BackgroundScope scope(
|
||||||
|
heap_->tracer(),
|
||||||
|
GCTracer::BackgroundScope::SCAVENGER_BACKGROUND_SCAVENGE_PARALLEL);
|
||||||
double scavenging_time = 0.0;
|
double scavenging_time = 0.0;
|
||||||
{
|
{
|
||||||
barrier_->Start();
|
barrier_->Start();
|
||||||
|
Loading…
Reference in New Issue
Block a user