diff options
author | Yabin Cui <yabinc@google.com> | 2016-04-13 21:28:54 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-04-14 10:30:16 -0700 |
commit | 040f7b4c62ce49f0af0746640e94d415764262cd (patch) | |
tree | 549f43b79d0639c7a91b78e64c15d797349e517c /simpleperf/thread_tree.cpp | |
parent | 6e6aa65411432adee75005558e1bb6056fd9d77a (diff) | |
download | extras-040f7b4c62ce49f0af0746640e94d415764262cd.tar.gz |
simpleperf: use libbacktrace_offline static library.
Device may not have libbacktrace_offline shared library, so always
using libbacktrace_offline static library.
Use simpleperf namespace to avoid conflicts with ThreadEntry in
libbacktrace.
Bug: 28152982
Change-Id: Ia2cdbee3b28556c790ccd7b061a801ed96f9b97c
Diffstat (limited to 'simpleperf/thread_tree.cpp')
-rw-r--r-- | simpleperf/thread_tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/thread_tree.cpp b/simpleperf/thread_tree.cpp index 31348749..daf3ff52 100644 --- a/simpleperf/thread_tree.cpp +++ b/simpleperf/thread_tree.cpp @@ -24,6 +24,8 @@ #include "perf_event.h" #include "record.h" +namespace simpleperf { + bool MapComparator::operator()(const MapEntry* map1, const MapEntry* map2) const { if (map1->start_addr != map2->start_addr) { return map1->start_addr < map2->start_addr; @@ -207,6 +209,8 @@ void ThreadTree::Clear() { user_dso_tree_.clear(); } +} // namespace simpleperf + void BuildThreadTree(const Record& record, ThreadTree* thread_tree) { if (record.header.type == PERF_RECORD_MMAP) { const MmapRecord& r = *static_cast<const MmapRecord*>(&record); |