add --profile mode

This pull request adds profile mode.
Profile mode print memory usage, parse time.