The script call valgrind with the right options to disable the GC and
avoid loops.
Signed-off-by: Jean Privat <jean@pryen.org>
--- /dev/null
+callgrind.*
--- /dev/null
+#!/bin/sh
+
+# Script to call valgrind with the right options
+
+# Disable GC to avoid unpredictable long news (those that trigger the GC)
+NIT_GC_OPTION=large
+export NIT_GC_OPTION
+
+# Skip usual methods with blocks to avoid loops
+exec valgrind --tool=callgrind --fn-skip=array___Array___iterate --fn-skip=abstract_collection___Collection___iterate --fn-skip=parser_prod___Visitor___enter_visit "$@"