diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-26 15:03:27 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-07-27 14:37:13 -0700 |
commit | 3e4c5950f3aafb0bf66544468d98ee3ec26b705c (patch) | |
tree | 0b7dca91eb9ffd0e729dd01f68f34b67d500dd13 /simpleperf/Android.mk | |
parent | 5b46f5747cdc481f8d1f51b3f8664335a2fdbcb4 (diff) | |
download | extras-3e4c5950f3aafb0bf66544468d98ee3ec26b705c.tar.gz |
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.
Diffstat (limited to 'simpleperf/Android.mk')
-rw-r--r-- | simpleperf/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/Android.mk b/simpleperf/Android.mk index 045aea73..4ce73199 100644 --- a/simpleperf/Android.mk +++ b/simpleperf/Android.mk @@ -48,6 +48,7 @@ simpleperf_static_libraries_target := \ libLLVMCore \ libLLVMSupport \ libprotobuf-cpp-lite \ + libevent \ libc \ simpleperf_static_libraries_host := \ @@ -70,6 +71,7 @@ simpleperf_static_libraries_host_linux := \ libbacktrace \ libunwind \ libcutils \ + libevent \ simpleperf_ldlibs_host_linux := -lrt @@ -103,6 +105,7 @@ libsimpleperf_src_files_linux := \ environment.cpp \ event_fd.cpp \ event_selection_set.cpp \ + IOEventLoop.cpp \ record_file_writer.cpp \ workload.cpp \ @@ -218,6 +221,7 @@ simpleperf_unit_test_src_files_linux := \ cmd_record_test.cpp \ cmd_stat_test.cpp \ environment_test.cpp \ + IOEventLoop_test.cpp \ record_file_test.cpp \ workload_test.cpp \ |