Browse Source

Add valgrind target and suppression file

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
62d357ca5c
2 changed files with 59 additions and 2 deletions
  1. +5
    -2
      Makefile
  2. +54
    -0
      valgrind.supp

+ 5
- 2
Makefile View File

@@ -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



+ 54
- 0
valgrind.supp View File

@@ -0,0 +1,54 @@
{
<insert_a_suppression_name_here>
Memcheck:Addr8
...
obj:/usr/lib/dri/i965_dri.so
...
}
{
<insert_a_suppression_name_here>
Memcheck:Addr4
...
obj:/usr/lib/dri/i965_dri.so
...
}
{
<insert_a_suppression_name_here>
Memcheck:Addr2
...
obj:/usr/lib/dri/i965_dri.so
...
}
{
<insert_a_suppression_name_here>
Memcheck:Addr1
...
obj:/usr/lib/dri/i965_dri.so
...
}


{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: possible
...
obj:/usr/lib/libasound.so.2.0.0
...
}
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
...
obj:/usr/lib/libgtk-x11-2.0.so.0.2400.32
...
}
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: possible
...
obj:/usr/lib/libgobject-2.0.so.0.5800.3
...
}

Loading…
Cancel
Save