Added code for parsing perf stats returned information.
Certain versions of perf have an error when being called by a parent
that redirects their output.  Instead of relying on correct stderr
redirection, just send command to perf to save stats to file, then
read stats.