From e3dbf202c8706665d410aa1eb66ca7e5936ddf3a Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Fri, 7 Jun 2013 17:25:47 +0000 Subject: [PATCH] Try to deflake cctest/test-cpu-profiler/NativeAccessorNameInProfile1 on Windows Make native accessors sleep for 1ms before measuring elapsed time. This is to check the theory that we cannot pause profiled thread on Win64 for some reason and miss many samples. BUG=None TBR=jkummerow@chromium.org Review URL: https://codereview.chromium.org/16656003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15016 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-cpu-profiler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc index a4a525d..188fbd9 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; } -- 2.7.4