Files
oam/knowledge base/valgrind.md
2024-07-26 20:21:40 +02:00

1007 B

Valgrind

TODO

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Setup
# Install from source.
git clone 'https://sourceware.org/git/valgrind.git'
cd 'valgrind'
./autogen.sh
./configure
make
make install

# Install using packages.
sudo zypper install 'valgrind'
Usage
# Measure how much heap memory a program uses.
valgrind --tool='massif' pulumi preview

# Get summary statistics from dump taken with massif.
ms_print 'massif.out.12345'

Further readings

Sources