Reviewers: Søren Gjesse, Description: CPU profiler: make code events handling scalable.
I changed the implementation of a queue between the VM and processor thread to be unbounded and lock-free, using Herb Sutter's example from DDJ article: http://www.ddj.com/high-performance-computing/210604448 This had brought back profiling overhead to a minimum for the page from Chromium's issue 16184. BUG=714 Please review this at http://codereview.chromium.org/2091019/show Affected files: M src/circular-queue-inl.h M src/circular-queue.h M src/cpu-profiler-inl.h M src/cpu-profiler.h M src/cpu-profiler.cc M src/platform-linux.cc M src/platform-macos.cc M src/platform-win32.cc M src/platform.h A src/unbound-queue-inl.h A src/unbound-queue.h M test/cctest/SConscript M test/cctest/test-circular-queue.cc A test/cctest/test-unbound-queue.cc M tools/gyp/v8.gyp M tools/v8.xcodeproj/project.pbxproj M tools/visual_studio/v8_base.vcproj M tools/visual_studio/v8_base_arm.vcproj M tools/visual_studio/v8_base_x64.vcproj M tools/visual_studio/v8_cctest.vcproj -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
