OSDN Git Service

simpleperf: merge records from different buffers in memory.
authorYabin Cui <yabinc@google.com>
Tue, 25 Oct 2016 02:13:09 +0000 (19:13 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 27 Oct 2016 00:08:13 +0000 (17:08 -0700)
commit2ea6de11962fea5613f15308b202fb505e57ae9b
treeb0e52846150f77724aa8c2e4d6500d06b58b13cd
parente7448f00cf02ebe92f41881cf9c4b198cadbb8af
simpleperf: merge records from different buffers in memory.

By reading records from all buffers at once, we can merge records
in memory instead of sorting them in perf.data. To make it clear,
this patch only contains the code to merge records in memory, and
I will remove old method later.

Bug: http://b/32343227
Test: run simpleperf_unit_test.
Test: run simpleperf_runtest.py.
Change-Id: Iea2da06c072243c2014f43c8aa6d96a23cfb9123
simpleperf/cmd_record.cpp
simpleperf/event_fd.cpp
simpleperf/event_fd.h
simpleperf/event_selection_set.cpp
simpleperf/event_selection_set.h
simpleperf/perf_clock.cpp
simpleperf/record.cpp
simpleperf/record.h