From f940a1c29b14f7333600afd9a36c36fe289852d7 Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Tue, 2 Jul 2013 14:06:39 +0000 Subject: [PATCH] Increase profiling interval for test-cpu-profiler/FunctionCallSample The test falkes on Windows bots as number of samples is not enough. This change increases sampling interval for the test on Windows. BUG=2628 TBR=jkummerow@chromium.org Review URL: https://codereview.chromium.org/18532003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15446 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-cpu-profiler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc index f4d9936..223f5fc 100644 --- a/test/cctest/test-cpu-profiler.cc +++ b/test/cctest/test-cpu-profiler.cc @@ -1062,6 +1062,11 @@ TEST(FunctionCallSample) { cpu_profiler->StartCpuProfiling(profile_name); int32_t duration_ms = 100; +#if defined(_WIN32) || defined(_WIN64) + // 100ms is not enough on Windows. See + // https://code.google.com/p/v8/issues/detail?id=2628 + duration_ms = 400; +#endif v8::Handle args[] = { v8::Integer::New(duration_ms) }; function->Call(env->Global(), ARRAY_SIZE(args), args); const v8::CpuProfile* profile = cpu_profiler->StopCpuProfiling(profile_name); -- 2.7.4