/usr/share/sagemath/bin/sage-massif is in sagemath-common 7.4-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/env bash
# We reuse the gdb pythonstartup script.
PYTHONSTARTUP=$SAGE_SCRIPTS_DIR/sage-ipython
export PYTHONSTARTUP
echo $PYTHONSTARTUP
if [ ! -d "$DOT_SAGE/valgrind" ]; then
mkdir "$DOT_SAGE/valgrind"
fi
LOG="$DOT_SAGE"/valgrind/sage-massif.%p
echo "Log file is $LOG"
MASSIF_FLAGS="--log-file=$LOG --depth=6 "; export MASSIF_FLAGS
if [ "$SAGE_MASSIF_FLAGS" ]; then
echo "Overwriting massif flags with:"
echo $SAGE_MASSIF_FLAGS
MASSIF_FLAGS=$SAGE_MASSIF_FLAGS; export MASSIF_FLAGS
else
echo "Using default flags:"
echo $MASSIF_FLAGS
fi
valgrind --tool=massif $MASSIF_FLAGS python -i
|