summaryrefslogtreecommitdiff
path: root/simpleperf/read_apk.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-07-26 15:03:27 -0700
committerYabin Cui <yabinc@google.com>2016-07-27 14:37:13 -0700
commit3e4c5950f3aafb0bf66544468d98ee3ec26b705c (patch)
tree0b7dca91eb9ffd0e729dd01f68f34b67d500dd13 /simpleperf/read_apk.cpp
parent5b46f5747cdc481f8d1f51b3f8664335a2fdbcb4 (diff)
downloadextras-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/read_apk.cpp')
-rw-r--r--simpleperf/read_apk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/read_apk.cpp b/simpleperf/read_apk.cpp
index af72cdf8..75de65a1 100644
--- a/simpleperf/read_apk.cpp
+++ b/simpleperf/read_apk.cpp
@@ -181,7 +181,7 @@ bool GetBuildIdFromApkFile(const std::string& apk_path, const std::string& elf_f
bool ParseSymbolsFromApkFile(const std::string& apk_path, const std::string& elf_filename,
const BuildId& expected_build_id,
- std::function<void(const ElfFileSymbol&)> callback) {
+ const std::function<void(const ElfFileSymbol&)>& callback) {
std::unique_ptr<EmbeddedElf> ee = ApkInspector::FindElfInApkByName(apk_path, elf_filename);
if (ee == nullptr) {
return false;