Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perftools.rb is a hack #42

Open
tmm1 opened this issue Mar 9, 2012 · 0 comments
Open

perftools.rb is a hack #42

tmm1 opened this issue Mar 9, 2012 · 0 comments

Comments

@tmm1
Copy link
Owner

tmm1 commented Mar 9, 2012

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant