#!/bin/bash SCRIPT_LOCATION=$(dirname $(readlink -f $0)) python -mcProfile -o axis.profile $SCRIPT_LOCATION/axis "$@" (echo sort cumulative; echo stats 20) | python -mpstats axis.profile