Try vernier for profiling
https://github.com/jhawthorn/vernier
does multithreaded stuff
@sl0thentr0py, mind if I try and poke around?
I'm only getting started, so:
- I'd like to setup something to profile and see how that looks in action — perhaps a reproducible demo of Mastodon running with Sentry profiler plugged in.
- Once that's done, I'll spike on using Vernier. My initial idea is to allow it as an option on the config level — so that the user can initially switch between stackprof and vernier, based on their preference or whatever they have in the bundle, or the Ruby version, seems like Vernier will need 3.2, and not everyone is there yet.
- I'll check how those profiles look in the UI — then we can perhaps take the first look at the spike PR.
Does that sound like a reasonable approach?
@natikgadzhi sure! we always welcome contributions
You'll basically need to extract the profile samples from vernier and massage them into our format. You can refer here or ask me if you don't understand something about our profile payload, it's a bit confusing if you've never worked with it.
Still on it — got distracted by shiny things like Spotlight and Crons 🤦🏼
it's ok.. take your time we're happy to take contributions but you don't have to do everything at once :)
@sl0thentr0py do we want to support both and make it configurable?