vernier
vernier copied to clipboard
Integrate with rack-mini-profiler
An easy way to get profiling data from a running web server is to have a Rack middleware, which wraps the current request in a profile and returns the profile of the request instead of the original body.
At work we use a custom middleware for this, but for other projects I really like https://github.com/MiniProfiler/rack-mini-profiler
We could propose Vernier support is added to rack-mini-profiler
(I don't know if they're open to it), or make our own middleware (would avoid needing to install an extra gem), or both!
@nateberkopec (as a rack-mini-profiler) how would you feel about vernier support?
100%, we're in 👍
Hey @jhawthorn, I'm interested in moving this one forward. For the existing visualization in RMP they vendor Speedscope into the gem. As we talked at RailsConf, doing something like that may work best for this as well. However I haven't seen the repo for the visualizer anywhere, could you point me in that direction?
@willtcarey @richardkmichael Sorry for the slow reply, yes https://vernier.prof/ and profile-viewer https://github.com/tenderlove/profiler which is also barely different than what's on https://profiler.firefox.com/
I'd love to see this integrated into rack-mini-profiler, be that a full integration which includes the profiler frontend (which should be possible, it's a single page app) or even just downloading profile files as a starting point I think would be an improvement.