Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust memory profiler future source candidate: koute/memory-profiler #166

Closed
bbros-dev opened this issue Mar 11, 2021 · 2 comments
Closed

Comments

@bbros-dev
Copy link

Not sure if this is a candidate for memory profiling in Rust:

https://github.com/koute/memory-profiler

  • Gathers every allocation and deallocation, along with full stack traces
    ...
  • Can dynamically stream the profiling data to another machine instead of saving it locally, which is useful for profiling on memory-constrained systems

Output is currently in JSON and Heaptrack formats so would need a new format. Not sure what else?

@brancz
Copy link
Member

brancz commented Mar 11, 2021

It looks like it largely works based on perf events. This is something we've been wanting to look into for some time, as I agree this is a really great idea for a "generic" profiler. That said, anything like perf or ebpf, won't be able to deliver line-number style statistics. For rust, it seems that pprof-rs is actually looking to implement memory profiling: tikv/pprof-rs#45. It looks like it's pretty far but the author doesn't have time to finish it up right now it seems. If there are any rust experts around (maybe you!) this would be really amazing to have in pprof-rs indeed!

@bbros-dev
Copy link
Author

Closing as it seems the effort is undereau appropriate place is tikv/pprof-rs#45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants