-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmassif_fpc
More file actions
executable file
·21 lines (19 loc) · 873 Bytes
/
massif_fpc
File metadata and controls
executable file
·21 lines (19 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -eu
valgrind --tool=massif --run-libc-freeres=no \
--alloc-fn='CMEM_CGETMEM$LONGWORD$$POINTER' \
--alloc-fn='CMEM_$$_CGETMEM$QWORD$$POINTER' \
--alloc-fn='CMEM_CGETMEM$LONGINT$$POINTER' \
--alloc-fn='CMEM_CREALLOCMEM$POINTER$LONGWORD$$POINTER' \
--alloc-fn='CMEM_CREALLOCMEM$POINTER$LONGINT$$POINTER' \
--alloc-fn='SYSTEM_GETMEM$LONGWORD$$POINTER' \
--alloc-fn='SYSTEM_GETMEM$LONGINT$$POINTER' \
--alloc-fn='SYSTEM_GETMEM$POINTER$LONGWORD' \
--alloc-fn='SYSTEM_GETMEM$POINTER$LONGINT' \
--alloc-fn='SYSTEM_$$_GETMEM$POINTER$QWORD' \
--alloc-fn='SYSTEM_REALLOCMEM$POINTER$LONGWORD$$POINTER' \
--alloc-fn='SYSTEM_REALLOCMEM$POINTER$LONGINT$$POINTER' \
--alloc-fn='SYSTEM$_$TOBJECT_$__$$_NEWINSTANCE$$TOBJECT' \
--threshold=0.01 \
"$@"
# --format=html was useful with previous massif versions, but it seems not available anymore?