Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index a4a525d8fe98f70618fd64bf14834cbf1f96d99c..188fbd948066ade0def73c4c894d1ba515aa5477 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -681,6 +681,7 @@ class FooAccessorsData { |
double start = i::OS::TimeCurrentMillis(); |
double duration = 0; |
while (duration < min_duration_ms_) { |
+ i::OS::Sleep(1); |
duration = i::OS::TimeCurrentMillis() - start; |
++*iterations; |
} |