simpleperf: add "monitor" command
Introduce a new "monitor" command which combines the recording of events
and the printing of their summary to stdout. There is a large overlap
between the "monitor" and "record" command. Only basic functionality
(i.e. system-wide collection) has been implemented, using the same
logic as "record". If further functionality is required, a merging of
both command logics should be done.
Test: atest on crosshatch
Change-Id: Ifd42d5e9cb9db144dc2bbbe7a7983570730e3f87
6 files changed