jhawthorn / vernier

📏 next generation CRuby profiler
https://vernier.prof/
MIT License
837 stars 20 forks source link

Avoid recording -1 sentinel in profile #89

Closed jhawthorn closed 3 months ago

jhawthorn commented 3 months ago

Fixes https://github.com/jhawthorn/vernier/issues/85

This works around a bug where we get an empty stack on suspend. In the future we should better support having an empty stack.

This fixes an issue where we would record a -1 sample and then when creating the firefox-compatible output would end up with a null in the frame list and make the resulting file error on load.