aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/trace_profile/valgrind.md
blob: 989e3dfee7e920c0ca10fd25d66da7fdf7838663 (plain) (tree)





















                                                                          
# valgrind(1)

## Memcheck `--tool=memcheck`

Is the default tool when invoking `valgrind` without explicitly specifying
`--tool`.

Memory checker used to identify:
- memory leaks
- out of bound accesses
- uninitialized reads

```sh
valgrind [OPTIONS] PROGRAM [ARGS]
    --log-file=FILE             Write valgrind output to FILE.
    --leak-check=full           Enable full leak check.
    --track-origins=yes         Show origins of undefined values.
    --keep-debuginfo=no|yes     Keep symbols etc for unloaded code.

    --gen-suppressions=yes      Generate suppressions file from the run.
    --suppressions=FILE         Load suppressions file.
```