Revision: 15016
Author: [email protected]
Date: Fri Jun 7 10:25:47 2013
Log: 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
[email protected]
Review URL: https://codereview.chromium.org/16656003
http://code.google.com/p/v8/source/detail?r=15016
Modified:
/branches/bleeding_edge/test/cctest/test-cpu-profiler.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-cpu-profiler.cc Thu Jun 6
00:00:57 2013
+++ /branches/bleeding_edge/test/cctest/test-cpu-profiler.cc Fri Jun 7
10:25:47 2013
@@ -681,6 +681,7 @@
double start = i::OS::TimeCurrentMillis();
double duration = 0;
while (duration < min_duration_ms_) {
+ i::OS::Sleep(1);
duration = i::OS::TimeCurrentMillis() - start;
++*iterations;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.