tmm1/perftools.rb — Issue #42: perftools.rb is a hack
Author: tmm1
Created: 2012-03-09 12:25:19+00:00
State: open

The SEGV handler has to go. Ignoring the top frame makes profiles kind of useless too.

The solution is to use the signal handler to register a one-time ruby event hook. This hook will fire the next time a method is called, providing a consistent VM state in which to take a profiling sample. No risk of segfaults and no hacks required.