flamegraph
heaptrack
Our great sponsors
flamegraph | heaptrack | |
---|---|---|
47 | 19 | |
4,262 | 3,009 | |
2.8% | 3.1% | |
7.4 | 8.8 | |
6 days ago | 4 days ago | |
Rust | C++ | |
Apache License 2.0 | GNU Lesser General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flamegraph
-
Rust Tooling: 8 tools that will increase your productivity
You can install cargo-flamegraph with cargo install flamegraph. There are some underlying requirements to be able to use cargo-flamegraph; you will want to take a look at the repo here to make sure you have the right dependencies.
-
Need help making sense of these benchmark results
I tried to diagnose the issue with flamegraph, but unfortunately the flamegraph didn't show anything beyond the next call for some reason
-
Why is my code so slow ? advent of code 2022, day 16 (basic graph stuff)
having some tools to identify slowness origins (flamegraph is one... but not sure it's the way to go)
-
why is my code so slow ? advent of code 2023, day 16 (basic graph stuff)
I'm currently implementing a solution for the first part of the day 16. It work but it is really slow... I'd like to : - understand why - having some tools to identify slowness origins (flamegraph is one... but not sure it's the way to go) - eventually have some clue/solution/idea - have general feedback on what in my "coding style" is not appropriate for rust (I come from java/kotlin/ts even if I've already coded a bit in c/c++) : for example I love iterator & sequence but i feel they are not really suited to overuse in rust (mostly because of async & result).
-
how expensive is an operation?
Use a profiler. Flamegraph is a good way to visualise profiler output. This lets you identify which functions are taking up a large amount of time - and hence helps you identify where to focus your optimisation efforts.
-
Slow Rust Redis
You tried trying to see what takes the most time under load via flames? https://github.com/flamegraph-rs/flamegraph
- making a virtual machine in rust
-
Need help with rust performance
Well, in cases like that the answer is straight forward, use a profiler like https://github.com/flamegraph-rs/flamegraph
-
superdiff - a way to find similar code blocks in projects (comments appreciated)
I don't see any obvious problems with your algorithm. I've had luck using cargo-flamegraph to identify the slow parts of my code. That's going to show you which parts to focus on improving the performance of!
-
Data-driven performance optimization with Rust and Miri
From the readme of cargo flamegraph:
heaptrack
-
Tracking Java Native Memory with JDK Flight Recorder
If we are talking replacing the libc allocator, then something like heaptrack is worth mentioning.
https://github.com/KDE/heaptrack
- Ask HN: Are There Viewers for Memory Layout?
-
How to Perf profile functions?
For accurate memory usage I prefer a memory profiler that overrides malloc and friends instead of the ones that probe the OS at regular intervals. You won't find memory spikes with the latter. Try heaptrack on Linux. I haven't found a good one for Windows yet.
-
What is your favourite profiling tool for C++?
I know it is not a profiler, but it is so criminally underrated that I decided to share it: https://github.com/KDE/heaptrack
-
My Rust program (Well, game) is leaking memory, 4MB/s.
If none of the above helps - I recommend heaptrack as a tool for tracking down your memory usage.
-
Lessons learned from 15 years of SumatraPDF, an open source Windows app
> memory leaks. It's surprisingly hard to find an easy to use memory leak detection tool.
I can vouch for heaptrack[1] nowadays, although it's pretty much Linux only. It's under the umbrella of KDE, but a heaptrack trace only requires a CLI app, and there is a nice Qt viewer to analyse the memory consumption.
It tracks the memory utilization at the level of malloc'd/free'd bytes. It's fine if your memory leak or other memory utilization problem is on this level. Recently I dealt with an issue, where increasing memory utilization was caused by fragmentation within the allocator. This didn't show up in heaptrack as an increasing memory utilization, but heaptrack still pointed out where most of the temporary allocations happened, leading to the culprit of the fragmentation.
[1] https://github.com/KDE/heaptrack
- Show HN: I wrote a tool in Rust for tracking all allocations in a Linux process
-
Implementing a C++ memory allocator to track our framework memory usage
This is probably what you are looking for https://github.com/KDE/heaptrack
-
Memory Leak? Free memory not being reclaimed? What is happening here
When I had this kind problems (heap related) I always use heaptrack. Take a look here for the details: https://github.com/KDE/heaptrack
- Hi, I’m new in rust, I have some expirience with c# and its classes ans structs. I can’t find information about that is happend with struct in rust when I pass it to function argument. Are there some copy effect ?
What are some alternatives?
cargo-flamegraph - Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
bytehound - A memory profiler for Linux.
tracing - Application level tracing for Rust.
memory-profiler - A memory profiler for Linux. [Moved to: https://github.com/koute/bytehound]
tensorflow_macos - TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
dhat-rs - Heap profiling and ad hoc profiling for Rust programs.
hashbrown - Rust port of Google's SwissTable hash map
pprof - pprof is a tool for visualization and analysis of profiling data
snmalloc-rs - rust bindings of snmalloc
profiler - Firefox Profiler — Web app for Firefox performance analysis
bcc - BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
jpegview - Fork of JPEGView by David Kleiner - fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimal GUI. Basic on-the-fly image processing is provided - allowing adjusting typical parameters as sharpness, color balance, rotation, perspective, contrast and local under-/overexposure.