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
This commit is contained in:
parent
659e0b46f5
commit
e3dbf202c8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user