Count the total number of cycles in the streamtrace and expose it.
Factor out some copy-and-pasted code.
Fix a format string.
Add a status bar showing the number of selected instructions and the numbercycles.