Refactor script, add new options

Refactored the trace processing script to use argument parsing, etc.,
and improve the structure.  Then added several command line options to
filter and provide different views.

Bug: none
Test: run the script on a trace, view the flame graph
Change-Id: I66805829c9e7212b2f69b3556134036f8dd21bc2
1 file changed