Add some additional valgrind scrips/options
parent
b55503231e
commit
8c37219e32
|
@ -145,7 +145,7 @@ See latest [Developer Documentation](https://gitlab.melroy.org/libreweb/browser/
|
|||
|
||||
Doxygen is build by default. You can disable the doxygen build, if you want, using: `cmake -DDOXYGEN:BOOL=FALSE ..`
|
||||
|
||||
### Memory Leaks
|
||||
### Memory check
|
||||
|
||||
First **build** the (Linux) target including *debug symbols*. Binary should be present in the `build/src` folder.
|
||||
|
||||
|
@ -155,6 +155,12 @@ Next, check for memory leaks using `valgrind` by executing:
|
|||
./scripts/valgrind.sh
|
||||
```
|
||||
|
||||
Or to generate a memory usage plot in [massif format](https://valgrind.org/docs/manual/ms-manual.html), execute:
|
||||
|
||||
```sh
|
||||
./scripts/valgrind_plot.sh
|
||||
```
|
||||
|
||||
## Other platforms
|
||||
|
||||
### Microsoft Windows
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
# By: Melroy van den Berg
|
||||
# Description: Used for memory leak analysis,
|
||||
# be-aware that you will get a lot of false positives messages due to GTK
|
||||
# be-aware that you will get a lot of false positives messages due to GTK/Glib
|
||||
|
||||
valgrind --leak-check=full --track-origins=yes ./build/src/libreweb-browser
|
||||
cd ./build/src
|
||||
G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind \
|
||||
--suppressions=/usr/share/glib-2.0/valgrind/glib.supp \
|
||||
--leak-check=full --track-origins=yes \
|
||||
./libreweb-browser
|
||||
|
|
Loading…
Reference in New Issue