jhawthorn / vernier

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

undefined method `frame_line_idx' for an instance of Vernier::Result> #84

Closed solnic closed 3 months ago

solnic commented 3 months ago

Hey hey! I'm trying out Vernier for Sentry so that it could potentially replace StackProf, and my goal is to create an output that has the same structure as StackProf so that it could Just Work with the Sentry backend (at least for a good start).

I looked into the Result class and discovered each_sample so I thought I could just use that and then I hit this:

result.each_sample { |stack, _| puts stack.frames.map(&:to_s).join("\n") }
#<NoMethodError: undefined method `frame_line_idx' for an instance of Vernier::Result>

Seems like a bug?

joshuay03 commented 3 months ago

Thanks for the report! Fixing in https://github.com/jhawthorn/vernier/pull/88

joshuay03 commented 3 months ago

Fix has been included in 1.1.2.