Install latest/stable of valgrind
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install using the command line
sudo snap install valgrind --classic
Don't have snapd? Get set up for snaps.
Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools.
The Valgrind distribution currently includes six production-quality tools: a memory error detector, two thread error detectors, a cache and branch-prediction profiler, a call-graph generating cache and branch-prediction profiler, a heap profiler, and a second heap profiler that examines how heap blocks are used. It also includes two experimental tools: a stack/global array overrun detector, and a SimPoint basic block vector generator.
Extra Tool
This snap also includes the experimental tool Failgrind, which is not part of the upstream Valgrind project.
Documentation
Documentation for this release which includes the Failgrind tool is available at http://valgrind.ral.me/
The official Valgrind documentation is available at http://valgrind.org/docs/manual/index.html
Snap Package
The source for this snap package can be found https://github.com/ralight/valgrind-snap
Disclaimer
This package is not currently affiliated with the upstream valgrind project.
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.