simpleperf: support pids in app_profiler.py.

In app_profiler.py, add --pid option to monitor native processes,
add --tid option to monitor native threads, add --system_wide
option to monitor system wide.

Switch inferno.py to use --pid option in app_profiler.py. Because
the previous way of converting pid to program name doesn't work
well on system_server process.

Add tests in test.py.

Bug: 112146809
Test: run test.py.

Change-Id: Ifd6d9f50ed025f1aeed482cb92679de348f6af59
3 files changed