simpleperf: Support compressing init_map feature section
init_map section stores system wide mmap info, which can
be about 50MB. So compress it when -z is used.
Before the compression:
$ ./simpleperf record -e cs-etm --duration 1 -a
$ ./simpleperf dump | grep init_map
feature section for init_map: offset 41951616, size 66181976
After the compression:
$ ./simpleperf record -e cs-etm --duration 1 -a -z
$ ./simpleperf dump | grep init_map
feature section for init_map: offset 19630208, size 1987611
Bug: 343557442
Test: run simpleperf_unit_test
Change-Id: Ifcd9d86ee01f0b37fe95d288d8834bcd17b63429
3 files changed