OSDN Git Service

simpleperf: use libevent in stat command.
authorYabin Cui <yabinc@google.com>
Tue, 26 Jul 2016 22:03:27 +0000 (15:03 -0700)
committerYabin Cui <yabinc@google.com>
Wed, 27 Jul 2016 21:37:13 +0000 (14:37 -0700)
commit3e4c5950f3aafb0bf66544468d98ee3ec26b705c
tree0b7dca91eb9ffd0e729dd01f68f34b67d500dd13
parent5b46f5747cdc481f8d1f51b3f8664335a2fdbcb4
simpleperf: use libevent in stat command.

Wrap libevent in IOEventLoop, use IOEventLoop in stat command.
Add corresponding tests.

Bug: http://b/30405638
Change-Id: I78b79e0eff1365ab46dde29c2a24a2def586af79
Test: run simpleperf_unit_test.
19 files changed:
simpleperf/Android.mk
simpleperf/IOEventLoop.cpp [new file with mode: 0644]
simpleperf/IOEventLoop.h [new file with mode: 0644]
simpleperf/IOEventLoop_test.cpp [new file with mode: 0644]
simpleperf/cmd_stat.cpp
simpleperf/cmd_stat_test.cpp
simpleperf/command.cpp
simpleperf/command.h
simpleperf/event_selection_set.cpp
simpleperf/event_selection_set.h
simpleperf/read_apk.cpp
simpleperf/read_apk.h
simpleperf/read_elf.cpp
simpleperf/read_elf.h
simpleperf/record_file.h
simpleperf/record_file_reader.cpp
simpleperf/utils.cpp
simpleperf/utils.h
simpleperf/workload_test.cpp