iorap: Add support to filter the compiled trace with app pid.

This will help mitigate potential contention caused by IORap.
For adobe reader, it could reduce the size of compiled trace
from ~400KB to ~100KB on my flame.

The performance is not affected based on benchmarking result
https://dashboards.corp.google.com/_f31ff276_6cb2_4ed6_973b_9640c4fb0df4?fb=BootImageProfileId:eq:2894

Bug: 173546018
Test: atest iorap-host-test
Test: Run apps with perfetto tracing and check the content of the
compiled trace.

Change-Id: Ie85cd7181fd0e11522f7db47217a0594cb2ecd3c
7 files changed