Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index a99389f5abdcd4eea33665bbe87fa92c27069afb..1c51a852978d5fe967deed0ab46c59d9c1d86f6b 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -53,7 +53,7 @@ TEST(StartStop) { |
ProfileGenerator generator(&profiles); |
ProfilerEventsProcessor processor(&generator); |
processor.Start(); |
- processor.Stop(); |
+ processor.StopSynchronously(); |
processor.Join(); |
} |
@@ -161,7 +161,7 @@ TEST(CodeEvents) { |
// Enqueue a tick event to enable code events processing. |
EnqueueTickSampleEvent(&processor, aaa_code->address()); |
- processor.Stop(); |
+ processor.StopSynchronously(); |
processor.Join(); |
// Check the state of profile generator. |
@@ -223,7 +223,7 @@ TEST(TickEvents) { |
frame2_code->instruction_end() - 1, |
frame1_code->instruction_end() - 1); |
- processor.Stop(); |
+ processor.StopSynchronously(); |
processor.Join(); |
CpuProfile* profile = |
profiles->StopProfiling(TokenEnumerator::kNoSecurityToken, "", 1); |
@@ -288,7 +288,7 @@ TEST(Issue1398) { |
sample->stack[i] = code->address(); |
} |
- processor.Stop(); |
+ processor.StopSynchronously(); |
processor.Join(); |
CpuProfile* profile = |
profiles->StopProfiling(TokenEnumerator::kNoSecurityToken, "", 1); |