Skip to content

Loading…

perftools.rb is a hack #42

Open
tmm1 opened this Issue · 0 comments

1 participant

@tmm1
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.