OSDN Git Service

simpleperf: use file records in protobuf output.
authorYabin Cui <yabinc@google.com>
Wed, 19 Oct 2016 22:06:29 +0000 (15:06 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 10 Nov 2016 23:38:58 +0000 (15:38 -0800)
commit16501ffbd73483c498dde1ea4ad2670da7c9df55
tree3c7c3a7f69ff65a7b984a93a3b96818f4f5acf7f
parentf94f3d3d43aaaec680fffa43b12eaa7d6c83d98a
simpleperf: use file records in protobuf output.

Dump file name and symbol name for each CallChainEntry
takes too much space. So instead we store file_id and
symbol_id for each CallChainEntry, and store file
records separately.

In CallChainEntry, replace ip with vaddr_in_file, because
vaddr_in_file is more useful in finding instructions in
elf file.

Bug: http://b/32210800
Test: simpleperf_unit_test.
Change-Id: I85542db21acbaa4d81b3c3aa7f9215f2d23c4878
simpleperf/cmd_record.cpp
simpleperf/cmd_report_sample.cpp
simpleperf/cmd_report_sample_test.cpp
simpleperf/dso.cpp
simpleperf/dso.h
simpleperf/report_sample.proto
simpleperf/thread_tree.cpp
simpleperf/thread_tree.h