OSDN Git Service

simpleperf: keep binary in class Record.
authorYabin Cui <yabinc@google.com>
Thu, 4 Aug 2016 17:22:17 +0000 (10:22 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 4 Aug 2016 19:25:10 +0000 (12:25 -0700)
commit190a848fb2d4f502372b2528c55ca1f520e90609
tree0f91a18d54c12e089e6454313577de959ff5095c
parent1f282c61fa7ba844688f370b64b3d547ca85d1ad
simpleperf: keep binary in class Record.

It removes memory copy and heap allocation/deallocation in
Record::BinaryFormat(), and is a preparation to remove memory
copy and heap allocation in Record constructor.

Bug: 30649868
Test: run simpleperf_unit_test.
Change-Id: Ic8dd80e43f7b547a9beaf896d726b56aeb5d55a2
16 files changed:
simpleperf/cmd_kmem.cpp
simpleperf/cmd_record.cpp
simpleperf/cmd_record_test.cpp
simpleperf/cmd_report.cpp
simpleperf/cmd_report_sample.cpp
simpleperf/perf_regs.cpp
simpleperf/perf_regs.h
simpleperf/record.cpp
simpleperf/record.h
simpleperf/record_equal_test.h
simpleperf/record_file_reader.cpp
simpleperf/record_file_test.cpp
simpleperf/record_file_writer.cpp
simpleperf/record_test.cpp
simpleperf/sample_tree.h
simpleperf/thread_tree.cpp