Add support for FlameGraph output

* New, optional command line parameter: -f
* If enabled, writes folded call stacks to output file, instead
  of statistics
* Use with the FlameGraph tool: https://github.com/brendangregg/FlameGraph