Home
last modified time | relevance | path

Searched refs:callchain (Results 1 – 22 of 22) sorted by relevance

/system/extras/simpleperf/
Dsample_tree.h123 std::vector<EntryT*> callchain; in ProcessSampleRecord() local
124 callchain.push_back(sample); in ProcessSampleRecord()
148 CreateCallChainSample(sample, ip, in_kernel, callchain, acc_info); in ProcessSampleRecord()
152 callchain.push_back(callchain_sample); in ProcessSampleRecord()
159 std::reverse(callchain.begin(), callchain.end()); in ProcessSampleRecord()
162 while (callchain.size() >= 2) { in ProcessSampleRecord()
163 EntryT* sample = callchain[0]; in ProcessSampleRecord()
164 callchain.erase(callchain.begin()); in ProcessSampleRecord()
170 InsertCallChainForSample(sample, callchain, acc_info); in ProcessSampleRecord()
193 const std::vector<EntryT*>& callchain,
[all …]
Dcallchain.h50 const std::vector<EntryT*>& callchain, uint64_t period, in AddCallChain()
53 NodeT* p = FindMatchingNode(children, callchain[0], is_same_sample); in AddCallChain()
55 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, 0, period, 0); in AddCallChain()
62 GetMatchingLengthInNode(p, callchain, callchain_pos, is_same_sample); in AddCallChain()
70 if (callchain_pos == callchain.size()) { in AddCallChain()
76 NodeT* np = FindMatchingNode(p->children, callchain[callchain_pos], in AddCallChain()
84 AllocateNode(callchain, callchain_pos, period, 0); in AddCallChain()
DSampleDisplayer.h116 if (sample->callchain.children.empty()) { in operator()
120 if (brief_callgraph_ && sample->callchain.duplicated) { in operator()
127 for (size_t i = 0; i < sample->callchain.children.size(); ++i) { in operator()
128 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i], in operator()
129 sample->callchain.children_period + sample->GetPeriod(), in operator()
130 (i + 1 == sample->callchain.children.size())); in operator()
Dcmd_report_sample.cpp343 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport() local
345 callchain.vaddr_in_file()); in DumpProtobufReport()
346 FprintIndented(report_fp_, 2, "file_id: %u\n", callchain.file_id()); in DumpProtobufReport()
347 int32_t symbol_id = callchain.symbol_id(); in DumpProtobufReport()
354 max_symbol_id_map[callchain.file_id()] = in DumpProtobufReport()
355 std::max(max_symbol_id_map[callchain.file_id()], symbol_id); in DumpProtobufReport()
543 proto::Sample_CallChainEntry* callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf() local
554 callchain->set_vaddr_in_file(node.vaddr_in_file); in PrintSampleRecordInProtobuf()
555 callchain->set_file_id(file_id); in PrintSampleRecordInProtobuf()
556 callchain->set_symbol_id(symbol_id); in PrintSampleRecordInProtobuf()
DSampleComparator.h63 BUILD_COMPARE_VALUE_FUNCTION(CompareCallGraphDuplicated, callchain.duplicated);
Dcmd_kmem.cpp43 CallChainRoot<SlabSample> callchain; // a callchain tree representing all member
216 const std::vector<SlabSample*>& callchain, in CreateCallChainSample() argument
226 callchain); in CreateCallChainSample()
Dreport_sample.proto38 repeated CallChainEntry callchain = 3; field
Dcmd_report.cpp72 CallChainRoot<SampleEntry> callchain; member
188 const std::vector<SampleEntry*>& callchain, in CreateCallChainSample() argument
202 return InsertCallChainSample(std::move(callchain_sample), callchain); in CreateCallChainSample()
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py36 def add_callchain(self, callchain, symbol, sample): argument
41 for j in range(callchain.nr):
42 entry = callchain.entries[callchain.nr - j - 1]
72 def add_sample(self, sample, symbol, callchain): argument
74 thread.add_callchain(callchain, symbol, sample)
Dinferno.py133 callchain = lib.GetCallChainOfCurrentSample()
134 if sample_filter_fn and not sample_filter_fn(sample, symbol, callchain):
136 process.add_sample(sample, symbol, callchain)
/system/extras/simpleperf/scripts/
Ddebug_unwind_reporter.py149 def __init__(self, pid, tid, unwinding_result, callchain, sample_record): argument
153 self.callchain = callchain
161 for i, node in enumerate(self.callchain):
185 if result.callchain[-1].vaddr_in_file == sample_result.callchain[-1].vaddr_in_file:
206 function_name = sample_result.callchain[-1].function_name
235 filename = sample_result.callchain[-1].filename
255 if name in sample_result.callchain[-1].filename:
259 def is_callchain_complete(callchain): argument
260 for node in callchain:
265 if is_callchain_complete(sample_result.callchain):
[all …]
Dreport_sample.py45 callchain = lib.GetCallChainOfCurrentSample()
53 for i in range(callchain.nr):
54 entry = callchain.entries[i]
Dbinary_cache_builder.py66 callchain = lib.GetCallChainOfCurrentSample()
67 for i in range(callchain.nr):
68 symbols.append(callchain.entries[i].symbol)
Dannotate.py213 callchain = lib.GetCallChainOfCurrentSample()
214 for i in range(callchain.nr):
215 symbols.append(callchain.entries[i].symbol)
272 callchain = lib.GetCallChainOfCurrentSample()
273 for i in range(callchain.nr):
274 symbols.append(callchain.entries[i].symbol)
Dsimpleperf_report_lib.py324 callchain = self._GetCallChainOfCurrentSampleFunc(self.getInstance())
325 assert not _is_null(callchain)
326 return callchain[0]
Dtest.py881 callchain = self.report_lib.GetCallChainOfCurrentSample()
882 self.assertEqual(callchain.nr, 0)
919 callchain = self.report_lib.GetCallChainOfCurrentSample()
920 for i in range(callchain.nr):
921 if callchain.entries[i].symbol.symbol_name == sleep_function_name:
933 callchain = report_lib.GetCallChainOfCurrentSample()
934 for i in range(callchain.nr):
935 if callchain.entries[i].symbol.symbol_name == 'artMterpAsmInstructionStart':
Dpprof_proto_generator.py291 callchain = self.lib.GetCallChainOfCurrentSample()
303 for i in range(callchain.nr):
304 entry = callchain.entries[i]
Dreport_html.py534 callchain = lib.GetCallChainOfCurrentSample()
548 for i in range(callchain.nr):
549 symbol = callchain.entries[i].symbol
/system/extras/perfprofd/tests/
DAndroid.bp71 "callchain.canned.perf.data",
Dperfprofd_test.cc861 for (uint64_t cc : sample.callchain()) { in FormatSampleEvent()
/system/extras/perfprofd/
Dperf_data_converter.cc83 CHECK_EQ(parsed_it->callchain.size(), sample_event.callchain_size()); in AddSymbolInfo()
127 for (auto& callchain_data: parsed_it->callchain) { in AddSymbolInfo()
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py400 for cc_ip in sample_ev.callchain: