trace-cmd profile: Add -o option to write profile output to file

If the -o option is given to the profiler, than have it write the profile
output to the file specified instead of stdout. The output of the command
executing still goes to stdout.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
3 files changed