summaryrefslogtreecommitdiff
path: root/simpleperf/record_file.h
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/record_file.h
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/record_file.h')
-rw-r--r--simpleperf/record_file.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/record_file.h b/simpleperf/record_file.h
index 3b6df7e4..89c93e24 100644
--- a/simpleperf/record_file.h
+++ b/simpleperf/record_file.h
@@ -114,7 +114,8 @@ class RecordFileReader {
}
bool ReadFeatureSection(int feature, std::vector<char>* data);
// If sorted is true, sort records before passing them to callback function.
- bool ReadDataSection(std::function<bool(std::unique_ptr<Record>)> callback, bool sorted = true);
+ bool ReadDataSection(const std::function<bool(std::unique_ptr<Record>)>& callback,
+ bool sorted = true);
std::vector<std::string> ReadCmdlineFeature();
std::vector<BuildIdRecord> ReadBuildIdFeature();
std::string ReadFeatureString(int feature);