Check if timeout has expired after processing each sample
authoryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Sep 2013 10:28:57 +0000 (10:28 +0000)
committeryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Sep 2013 10:28:57 +0000 (10:28 +0000)
commit8d6a096c422937b7e946da793f343faad6457e9a
tree5ec0a5303078667517521010fef74bdcb2606343
parent215ae8aa6d5cd110025adc73ce630bb2d6bdf225
Check if timeout has expired after processing each sample

To avoid long intervals between taking samples due to processing all accumulated samples at once, the samples are processed one by one and we check if the sampling interval has elapsed after each step rather than after processing all the samples in the queue.

BUG=v8:2814
R=bmeurer@chromium.org, loislo@chromium.org

Review URL: https://codereview.chromium.org/23583036

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16548 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/cpu-profiler.cc
src/cpu-profiler.h