2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/heaptrack

15 lines
569 B
Plaintext
Raw Normal View History

2020-11-02 12:26:04 +00:00
# heaptrack
# Heap memory profiler for Linux
# Utility to trace all memory allocations and annotate these events with stack
# traces. More information: <https://github.com/KDE/heaptrack>.
2020-11-02 12:26:04 +00:00
# Launch your_exec, then start tracing its memory allocations. The code will
# exit with the path to your profile data file.
2020-11-02 12:26:04 +00:00
heaptrack ./your_exec
# Analyze the heaptrack profiling data using the heaptrack GUI tool.
2020-11-02 12:26:04 +00:00
heaptrack_gui heaptrack.your_exec.pid.zst
# Analyze the heaptrack profiling data using the heaptrack simple CLI tool.
2020-11-02 12:26:04 +00:00
heaptrack_print heaptrack.your_exec.pid.zst