Improve get_printable_location() so that we can profile in jitviewer better.