diff --git a/Makefile b/Makefile index ad81e633..fcaab763 100644 --- a/Makefile +++ b/Makefile @@ -73,12 +73,15 @@ endif perf: $(TARGET) # Requires gperftools -ifdef ARCH_LIN perf record --call-graph dwarf -o perf.data ./$< -d -endif # Analyze with hotspot (https://github.com/KDAB/hotspot) for example # hotspot perf.data +valgrind: $(TARGET) + # --gen-suppressions=yes + # --leak-check=full + valgrind --suppressions=valgrind.supp ./$< -d + clean: rm -rfv $(TARGET) libRack.a Rack.res build dist diff --git a/valgrind.supp b/valgrind.supp new file mode 100644 index 00000000..116f1a0b --- /dev/null +++ b/valgrind.supp @@ -0,0 +1,54 @@ +{ + + Memcheck:Addr8 + ... + obj:/usr/lib/dri/i965_dri.so + ... +} +{ + + Memcheck:Addr4 + ... + obj:/usr/lib/dri/i965_dri.so + ... +} +{ + + Memcheck:Addr2 + ... + obj:/usr/lib/dri/i965_dri.so + ... +} +{ + + Memcheck:Addr1 + ... + obj:/usr/lib/dri/i965_dri.so + ... +} + + +{ + + Memcheck:Leak + match-leak-kinds: possible + ... + obj:/usr/lib/libasound.so.2.0.0 + ... +} +{ + + Memcheck:Leak + match-leak-kinds: definite + ... + obj:/usr/lib/libgtk-x11-2.0.so.0.2400.32 + ... +} +{ + + Memcheck:Leak + match-leak-kinds: possible + ... + obj:/usr/lib/libgobject-2.0.so.0.5800.3 + ... +} \ No newline at end of file