Adds bash function for tracing processes.