Debian Codegraph @

tests/test-json-instruction-count

raw symbols SCIP
1 #!/bin/sh
2
3 COMMAND=$@
4 INSTRUCTIONS=`valgrind --tool=callgrind --callgrind-out-file=/dev/null --instr-atstart=no --collect-atstart=no --combine-dumps=yes $COMMAND 2>&1 > /dev/null | grep refs | grep I | tail --lines=1 | cut -d ":" -f 2 | sed -e 's/^[ \t]*//'`
5
6 echo "Instructions needed to execute '$COMMAND': $INSTRUCTIONS"