MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.
MIT License
3.71k stars 404 forks source link

Include configured base path in speedscope iframe URL #587

Closed davidtaylorhq closed 1 year ago

davidtaylorhq commented 1 year ago

When rack-mini-profiler was used under a different base URL (e.g. when deployed in a Rails app with relative_url_root configured), the stackprof iframe URL was missing the base path. This commit fixes the path for the flamegraph by sharing logic with the #get_profile_script method, and adds a spec.