From 040f7b4c62ce49f0af0746640e94d415764262cd Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 13 Apr 2016 21:28:54 -0700 Subject: 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 --- simpleperf/thread_tree.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'simpleperf/thread_tree.cpp') 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(&record); -- cgit v1.2.3