Revision: 16428
Author:   [email protected]
Date:     Thu Aug 29 13:44:25 2013 UTC
Log:      Support higher CPU profiler sampling rate on Windows

This change moves sampling from SamplerThread to the profiler events processing thread and allows to configure sampling interval on Windows.

Custom tick counter is used instead of OS::Ticks as the latter has maximum presicion of 1ms while we need 100us. QueryPerformanceCounter is used to retrieve high-precision time as described in http://msdn.microsoft.com/en-us/library/ee417693(VS.85).aspx

BUG=v8:2814
[email protected]

Review URL: https://codereview.chromium.org/23271003
http://code.google.com/p/v8/source/detail?r=16428

Modified:
 /branches/bleeding_edge/src/sampler.cc

=======================================
--- /branches/bleeding_edge/src/sampler.cc      Thu Aug 29 09:58:30 2013 UTC
+++ /branches/bleeding_edge/src/sampler.cc      Thu Aug 29 13:44:25 2013 UTC
@@ -609,6 +609,8 @@
 bool Sampler::CanSampleOnProfilerEventsProcessorThread() {
 #if defined(USE_SIGNALS)
   return true;
+#elif V8_OS_WIN || V8_OS_CYGWIN
+  return true;
 #else
   return false;
 #endif

--
--
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.

Reply via email to