osyoyu / pf2

A sampling-based profiler for Ruby
https://rubygems.org/gems/pf2
MIT License
48 stars 3 forks source link

Show function location (file:line) in report #15

Closed osyoyu closed 8 months ago

osyoyu commented 8 months ago

Show values obtained from rb_profile_frame_path() and rb_profile_frame_first_lineno() in the report.

image

For native frames, we'll need to switch from backtrace_syminfo() to backtrace_pcinfo() which should return linenos and file paths.