src: fix v8::CpuProfiler idle sampling
authorOleksandr Chekhovskyi <oleksandr.chekhovskyi@hansoft.com>
Fri, 7 Aug 2015 13:03:04 +0000 (15:03 +0200)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Tue, 15 Sep 2015 01:50:57 +0000 (21:50 -0400)
commitb0df2273abaf9e4e16f8211b1d754282a912784f
tree74ae0421d44d112e7d4fcac93ede2f85450f4bd2
parent8119693a3d4103226dfaa2f682e226b77b93e6d9
src: fix v8::CpuProfiler idle sampling

Ensure that samples are evenly distributed, which is required for
v8::CpuProfiler users to work correctly (v8-profiler / node-inspector).

PR-URL: https://github.com/nodejs/node/pull/2324
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/node.cc