OSDN Git Service

simpleperf: dump only needed symbols in file feature section.
authorYabin Cui <yabinc@google.com>
Fri, 11 Nov 2016 22:53:52 +0000 (14:53 -0800)
committerYabin Cui <yabinc@google.com>
Fri, 11 Nov 2016 23:11:12 +0000 (15:11 -0800)
commitaba7e29f163b4a332a9d3fe9973d82c7d0db148f
tree944565b95767350edf8a21a8ab12743c3882ad55
parent0dc19e622630be067ba3ced98f142965fa05c0f0
simpleperf: dump only needed symbols in file feature section.

Instead of dumping all symbols in the hit elf files, dump only
needed symbols can save a lot of space. To do so, read perf.data
after recording to collect hit file and symbol information.

Bug: http://b/32340274
Test: test using `simpleperf record --dump-symbols` manually.
Test: run simpleperf_unit_test.
Change-Id: I480f3e2e7ccebfbb5df16a597724f5f40d62c821
simpleperf/cmd_record.cpp
simpleperf/cmd_report_sample.cpp
simpleperf/dso.cpp
simpleperf/dso.h
simpleperf/record_file.h
simpleperf/record_file_writer.cpp