Add some additional valgrind scrips/options

master
Melroy van den Berg 2022-02-20 02:18:26 +01:00
parent 8c37219e32
commit 4b20d60c7e
No known key found for this signature in database
GPG Key ID: 71D11FF23454B9D7
1 changed files with 11 additions and 0 deletions

11
scripts/valgrind_plot.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# By: Melroy van den Berg
# Description: Generate memory usage plots in massif format (https://valgrind.org/docs/manual/ms-manual.html),
# be-aware that you will get a lot of false positives messages due to GTK/Glib
cd ./build/src
G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind \
--suppressions=/usr/share/glib-2.0/valgrind/glib.supp \
--suppressions=/usr/share/gtk-3.0/valgrind/gtk.supp \
--tool=massif \
./libreweb-browser