Reviewers: Kevin Millikin,

Message:
This change looks big, but it is actually pretty simple: it adds Logger-like
CpuProfiler object which is bound to VM events by PROFILE macro. If v8 is
compiled as usual, PROFILE is just expanded into LOG. If v8 is compiled with
'cppprofilesprocessor', PROFILE also notifies profiles processor. Also, Sampler platform-specific implementations are modified to report stack samples to the
new implementation.

Description:
C++ profiles processor: wire up to VM.

If 'shell' is compiled with 'cppprofilesprocessor=on' and run
with '--prof' flag, top-down and bottom-up call trees are printed
on shell exit.

Please review this at http://codereview.chromium.org/1582004

Affected files:
  M src/arm/regexp-macro-assembler-arm.cc
  M src/builtins.cc
  M src/code-stubs.cc
  M src/codegen.cc
  M src/compiler.cc
  M src/cpu-profiler-inl.h
  M src/cpu-profiler.h
  M src/cpu-profiler.cc
  M src/handles.cc
  M src/ia32/assembler-ia32.cc
  M src/ia32/regexp-macro-assembler-ia32.cc
  M src/log.h
  M src/log.cc
  M src/mark-compact.cc
  M src/platform-linux.cc
  M src/platform-macos.cc
  M src/platform-win32.cc
  M src/platform.h
  M src/profile-generator-inl.h
  M src/profile-generator.h
  M src/profile-generator.cc
  M src/stub-cache.cc
  M src/v8.h
  M src/v8.cc
  M src/x64/assembler-x64.cc
  M src/x64/regexp-macro-assembler-x64.cc
  M test/cctest/test-cpu-profiler.cc
  M test/cctest/test-log.cc
  M test/cctest/test-profile-generator.cc


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe, reply using "remove me" as the subject.

Reply via email to