Add report_sample.py --header option, like perf script --header
The event_type_info is newline-delimited so I had to replace the newlines in it to ensure that all lines start with a '#'.
This argument list is growing a bit so use kwargs to make sure I don't mix up the ordering.
As an example, this outputs a header like this:
```
# ========
# cmdline : /data/local/tmp/simpleperf record -o /data/local/tmp/perf.data -f 4000 -g -e cpu-clock --trace-offcpu --duration 60 --symfs /data/local/tmp/native_libs/ --app com.google.android.apps.maps
# arch : aarch64
# timestamp : 1630999288
# kernel_symbols_available : true
# clockid : monotonic
# app_type : profileable
# app_package_name : com.google.android.apps.maps
# kernel_version : 4.19.189-g17d2916c51d1-ab7463133
# android_build_fingerprint : google/bramble/bramble:12/SP1A.210618.002.A2/7480263:userdebug/dev-keys
# android_build_type : userdebug
# android_sdk_version : 31
# event_type_info : cpu-clock,1,0 sched:sched_switch,2,91
# trace_offcpu : true
# simpleperf_version : 1.build.7649958
# system_wide_collection : false
# android_version : 12
# product_props : Google:Pixel 4a (5G):bramble
# ========
#
com.google.android.apps.maps 23281/23309 [006] 520295.964233: 250313 cpu-clock:
[...]
```
BUG=199978997
Change-Id: Idd1f4ab643080a207639068b1a3e6d14fcf97337
1 file changed