Support `--prof` for profiling
Merge pull request #834 from attentif/master

Support `--prof` option for profiling