Add a command to dump profiling output.
Merge branch 'profile-dump'