Embedding samply in a Rust binary for self-profiling purposes
I'm wondering if it's feasible to pull in samply as a dependency in a Rust binary and, in response to some trigger, profile the current process for a period of time.
Would be nice to provide our users with a simple way to generate and send us a profile when our application is misbehaving, and embedding samply in our binary would avoid codesigning issues on macOS.
2 条评论