2020-11-02 12:26:04 +00:00
|
|
|
# heaptrack
|
2020-11-02 16:44:08 +00:00
|
|
|
# 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
|
|
|
|
2020-11-02 16:44:08 +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
|
|
|
|
|
2020-11-02 16:44:08 +00:00
|
|
|
# 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
|
|
|
|
|
2020-11-02 16:44:08 +00:00
|
|
|
# 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
|