Home
last modified time | relevance | path

Searched refs:thread_tree_ (Results 1 – 10 of 10) sorted by relevance

/system/extras/simpleperf/
Dthread_tree_test.cpp26 thread_tree_.AddThreadMap(0, 0, start, end - start, start, name); in AddMap()
37 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in CheckMaps()
57 const MapEntry* entry = thread_tree_.FindMap(thread, i, false); in CheckMaps()
60 ASSERT_TRUE(thread_tree_.IsUnknownDso(entry->dso)); in CheckMaps()
68 ThreadTree thread_tree_; member in ThreadTreeTest
97 thread_tree_.AddThreadMap(0, 0, 0, 1, 0, "0", map_flags::PROT_JIT_SYMFILE_MAP); in TEST_F()
98 thread_tree_.AddThreadMap(1, 1, 1, 1, 1, "1"); in TEST_F()
99 thread_tree_.ForkThread(0, 0, 1, 1); in TEST_F()
102 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in TEST_F()
104 const MapEntry* map = thread_tree_.FindMap(thread, 0); in TEST_F()
Dcmd_report.cpp111 thread_tree_(thread_tree), in ReportCmdSampleTreeBuilder()
152 thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateSample()
154 thread_tree_->FindMap(thread, r.ip_data.ip, in_kernel); in CreateSample()
157 thread_tree_->FindSymbol(map, r.ip_data.ip, &vaddr_in_file); in CreateSample()
167 thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateBranchSample()
168 const MapEntry* from_map = thread_tree_->FindMap(thread, item.from); in CreateBranchSample()
171 thread_tree_->FindSymbol(from_map, item.from, &from_vaddr_in_file); in CreateBranchSample()
172 const MapEntry* to_map = thread_tree_->FindMap(thread, item.to); in CreateBranchSample()
175 thread_tree_->FindSymbol(to_map, item.to, &to_vaddr_in_file); in CreateBranchSample()
191 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in CreateCallChainSample()
[all …]
Dcmd_report_sample.cpp132 ThreadTree thread_tree_; member in __anoncefef3490111::ReportSampleCommand
177 thread_tree_.ShowMarkForUnknownSymbol(); in Run()
178 thread_tree_.ShowIpForUnknownSymbol(); in Run()
423 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFile()
473 thread_tree_.Update(*record); in ProcessRecord()
503 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessSampleRecord()
549 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleRecordInProtobuf()
585 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetCallEntry()
586 if (omit_unknown_dso && thread_tree_.IsUnknownDso(map->dso)) { in GetCallEntry()
589 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry()
[all …]
Dcmd_debug_unwind.cpp128 ThreadTree thread_tree_; member in DebugUnwindCommand
189 reader_->LoadBuildIdAndFileFeatures(thread_tree_); in UnwindRecordFile()
235 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessRecord()
266 thread_tree_.Update(*record); in ProcessRecord()
273 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo()
275 const MapEntry* map = thread_tree_.FindMap(thread, ip, false); in CollectHitFileInfo()
280 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, nullptr, &dso); in CollectHitFileInfo()
368 if (!writer_->WriteFileFeatures(thread_tree_.GetAllDsos())) { in WriteFeatureSections()
Dsample_tree_test.cpp62 : SampleTreeBuilder(TestSampleComparator()), thread_tree_(thread_tree) {} in TestSampleTreeBuilder()
65 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample()
66 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in AddSample()
93 ThreadTree* thread_tree_; member in __anon6f7917490111::TestSampleTreeBuilder
Dreport_lib_interface.cpp155 void ShowIpForUnknownSymbol() { thread_tree_.ShowIpForUnknownSymbol(); } in ShowIpForUnknownSymbol()
178 ThreadTree thread_tree_; member in ReportLib
226 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFileIfNecessary()
256 thread_tree_.Update(*record); in GetNextSample()
288 current_thread_ = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in SetCurrentSample()
309 const MapEntry* map = thread_tree_.FindMap(current_thread_, ips[i], i < kernel_ip_count); in SetCurrentSample()
331 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, &vaddr_in_file); in SetCurrentSample()
Dcmd_kmem.cpp119 thread_tree_(thread_tree), in SlabSampleTreeBuilder()
180 const Symbol* symbol = thread_tree_->FindKernelSymbol(call_site); in CreateSample()
221 const Symbol* symbol = thread_tree_->FindKernelSymbol(ip); in CreateCallChainSample()
250 ThreadTree* thread_tree_; member in __anon93d0ff560111::SlabSampleTreeBuilder
352 ThreadTree thread_tree_; member in __anon93d0ff560111::KmemCommand
546 new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree()
569 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
608 thread_tree_.Update(*record); in ProcessRecord()
Dcmd_record.cpp318 ThreadTree thread_tree_; member in RecordCommand
1271 thread_tree_.Update(*record); in SaveRecordAfterUnwinding()
1307 thread_tree_.AddDexFileOffset(info.file_path, info.dex_file_offset); in ProcessJITDebugInfo()
1414 thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
1521 thread_tree_.ClearThreadAndMap(); in DumpAdditionalFeatures()
1528 thread_tree_.Update(*r); in DumpAdditionalFeatures()
1590 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpBuildIdFeature()
1631 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpFileFeature()
1632 return record_file_writer_->WriteFileFeatures(thread_tree_.GetAllDsos()); in DumpFileFeature()
1661 thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo()
[all …]
Dthread_tree.cpp57 auto it = thread_tree_.find(tid); in FindThreadOrNew()
58 if (it == thread_tree_.end()) { in FindThreadOrNew()
86 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in CreateThread()
261 thread_tree_.clear(); in ClearThreadAndMap()
337 for (auto& pair : thread_tree_) { in GetAllThreads()
Dthread_tree.h138 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; variable