ll_prof: Reduce profiling hooks overhead from >400% to 25%.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Apr 2011 16:06:25 +0000 (16:06 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Apr 2011 16:06:25 +0000 (16:06 +0000)
commita9ea3f98b01263d8445d456d11a4f0ca9108c8c4
tree39090ea643580ef1b1ee219247bbe2d932e95540
parent796ac25a4f95800ef8050b35266f289d2a86100b
ll_prof: Reduce profiling hooks overhead from >400% to 25%.

Switched to using binary low-level log instead of the textual log used
by the ticks processor. The binary log contains code-related events,
code object names, and their bodies. When writing to the log we ask
glibc to use a larger buffer. To avoid complex processing of the
snapshot log (which is still textual) the serializer emits final
snapshot position to code name mappings that can be quickly be read
without replaying the snapshot log. (This might be useful for the
ticks processor.)

Review URL: http://codereview.chromium.org/6904127

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7729 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/isolate.cc
src/log-utils.cc
src/log-utils.h
src/log.cc
src/log.h
src/utils.h
tools/ll_prof.py