/developtools/hiperf/test/unittest/common/native/ |
H A D | report_protobuf_file_test.cpp | 296 sample.callFrames_.emplace_back(0x1, 0x1234, "user_symbol", "first_user_func"); in HWTEST_F() 297 sample.callFrames_.emplace_back(0x2, 0x1234, "user_symbol2", "first_user2_func"); in HWTEST_F() 298 sample.callFrames_.emplace_back(0x3, 0x1234, "user_symbol2", "second_user2_func"); in HWTEST_F() 300 sample.callFrames_.at(0).symbolFileIndex = 0; in HWTEST_F() 301 sample.callFrames_.at(1).symbolFileIndex = 1; in HWTEST_F() 302 sample.callFrames_.at(2).symbolFileIndex = 1; in HWTEST_F() 303 sample.callFrames_.at(0).index = 0; in HWTEST_F() 304 sample.callFrames_.at(1).index = 0; in HWTEST_F() 305 sample.callFrames_.at(2).index = 1; in HWTEST_F() 326 sample.callFrames_ in HWTEST_F() [all...] |
H A D | perf_event_record_test.cpp | 450 record.callFrames_ = {1, 2, 3, 4, 5, 6, 7, 8, 9}; in HWTEST_F() 458 ASSERT_EQ(record.callFrames_.size() + 1, record.data_.nr); in HWTEST_F() 461 ASSERT_EQ(record.data_.ips[i], record.callFrames_.at(i - 1).pc); in HWTEST_F() 481 record.callFrames_ = {1, 2, 3, 4, 5, 6, 7, 8, 9}; in HWTEST_F() 484 ASSERT_EQ(record.callFrames_.size() + 1, record.data_.nr); in HWTEST_F() 487 ASSERT_EQ(record.data_.ips[i], record.callFrames_.at(i - 1).pc); in HWTEST_F() 504 record.callFrames_ = {4, 5, 6, 7, 8, 9}; in HWTEST_F() 510 ASSERT_EQ(record.callFrames_.size() + ips.size() + 1, record.data_.nr); in HWTEST_F() 515 for (size_t i = 0; i < record.callFrames_.size(); i++) { in HWTEST_F() 516 ASSERT_EQ(record.data_.ips[i + ips.size() + 1], record.callFrames_ in HWTEST_F() [all...] |
H A D | report_test.cpp | 713 sample.callFrames_.emplace_back(0x1, 0x1234, "dummy", "frame1"); in HWTEST_F() 714 sample.callFrames_.emplace_back(0x2, 0x1234, "dummy", "frame2"); in HWTEST_F() 715 sample.callFrames_.emplace_back(0x3, 0x1234, "dummy", "frame3"); in HWTEST_F() 716 sample.callFrames_.emplace_back(0x3, 0x1234, "dummy", "frame4"); in HWTEST_F() 781 sample.callFrames_.emplace_back(0x1, 0x1234, "dummy", "frame1"); in HWTEST_F() 782 sample.callFrames_.emplace_back(0x2, 0x1234, "dummy", "frame2"); in HWTEST_F() 783 sample.callFrames_.emplace_back(0x3, 0x1234, "dummy", "frame3"); in HWTEST_F() 785 sample.callFrames_.emplace_back(0x3, 0, "dummy", "frame4"); in HWTEST_F()
|
H A D | virtual_runtime_test.cpp | 380 ASSERT_LE(TEST_RECORD_CALLSTACK_IP_FUNC.size(), sample.callFrames_.size()); in HWTEST_F() 382 EXPECT_EQ(TEST_RECORD_CALLSTACK_IP_FUNC[i].first, sample.callFrames_[i].funcOffset); in HWTEST_F() 384 sample.callFrames_[i].funcName.data()); in HWTEST_F()
|
/developtools/hiperf/src/ |
H A D | report.cpp | 43 HLOG_ASSERT(sample.callFrames_.size() > 0); in AddReportItem() 44 if (sample.callFrames_.size() > 0) { in AddReportItem() 48 auto frameIt = sample.callFrames_.rbegin(); in AddReportItem() 56 for (frameIt = sample.callFrames_.rbegin(); frameIt != sample.callFrames_.rend(); in AddReportItem() 64 (std::next(frameIt) == sample.callFrames_.rend()) ? sample.data_.period : 0); in AddReportItem() 73 auto frameIt = sample.callFrames_.begin(); in AddReportItem() 74 if (frameIt != sample.callFrames_.end()) { in AddReportItem() 77 if (StringEndsWith(frameIt->mapName, "stub.an") && sample.callFrames_.size() > 1) { in AddReportItem()
|
H A D | subcommand_dump.cpp | 428 PRINT_INDENT(indent, "\n callchain: %zu\n", sample->callFrames_.size()); in DumpCallChain() 429 if (sample->callFrames_.size() > 0) { in DumpCallChain() 431 for (auto frameIt = sample->callFrames_.begin(); frameIt != sample->callFrames_.end(); in DumpCallChain() 433 PRINT_INDENT(indent, "%02zd:%s\n", std::distance(frameIt, sample->callFrames_.end()), in DumpCallChain()
|
H A D | virtual_runtime.cpp | 499 MakeCallFrame(symbol, recordSample.callFrames_.emplace_back(ip, 0)); in SymbolicCallFrame() 500 HLOGV(" (%zu)unwind symbol: %*s%s", recordSample.callFrames_.size(), in SymbolicCallFrame() 501 static_cast<int>(recordSample.callFrames_.size()), "", in SymbolicCallFrame() 502 recordSample.callFrames_.back().ToSymbolString().c_str()); in SymbolicCallFrame() 523 recordSample.callFrames_.clear(); in SymbolicRecord() 600 recordSample.callFrames_); in UnwindFromRecord() 604 size_t oldSize = recordSample.callFrames_.size(); in UnwindFromRecord() 605 HLOGV("unwind %zu", recordSample.callFrames_.size()); in UnwindFromRecord() 606 callstack_.ExpandCallStack(thread.tid_, recordSample.callFrames_, callstackMergeLevel_); in UnwindFromRecord() 607 HLOGV("expand %zu (+%zu)", recordSample.callFrames_ in UnwindFromRecord() [all...] |
H A D | perf_event_record.cpp | 219 std::vector<DfxFrame> PerfRecordSample::callFrames_ = {}; member in OHOS::Developtools::HiPerf::PerfRecordSample 327 if (callFrames_.size() != 0) { in ReplaceWithCallStack() 332 ips_.reserve(data_.nr + callFrames_.size() + perfContextSize); in ReplaceWithCallStack() 340 bool ret = std::all_of(callFrames_.begin(), callFrames_.end(), [&](const DfxFrame &frame) { in ReplaceWithCallStack() 342 if (originalSize != 0 and (originalSize != callFrames_.size()) and in ReplaceWithCallStack() 351 HLOGV("combed %zu", callFrames_.size()); in ReplaceWithCallStack() 353 HLOGV("failed to combed %zu", callFrames_.size()); in ReplaceWithCallStack() 604 callFrames_.clear(); in Clean()
|
H A D | report_protobuf_file.cpp | 125 for (const DfxFrame &frame : recordSample.callFrames_) { in ProcessSampleRecord()
|
H A D | subcommand_report.cpp | 208 sample->callFrames_); in ProcessSample()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | stack_preprocess.cpp | 114 callFrames_.reserve(hookConfig_.max_stack_depth() + hookConfig_.max_js_stack_depth()); in StackPreprocess() 433 callFrames_.clear(); in TakeResults() 455 size_t realFrameDepth = callFrames_.size(); in TakeResults() 467 rawData->stackConext->pid, rawData->stackConext->tid, callFrames_, stackDepth); in TakeResults() 479 SetHookData(rawData, callFrames_, stackData); in TakeResults() 481 WriteFrames(rawData, callFrames_); in TakeResults() 484 SetApplyAndReleaseMatchFrame(rawData, callFrames_, stackData); in TakeResults() 486 SetHookData(rawData, callFrames_, stackData); in TakeResults() 499 curTimeCost, rawData->stackConext->type, realFrameDepth, callFrames_.size()); in TakeResults() 751 CallFrame& jsCallFrame = callFrames_ in FillNapiStack() [all...] |
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/ |
H A D | perf_data_parser.cpp | 672 for (auto &callFrame : sample->callFrames_) { in UpdateCallChainUnCompressed() 685 for (auto frame = sample->callFrames_.rbegin(); frame != sample->callFrames_.rend(); ++frame) { in UpdateCallChainUnCompressed()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | stack_preprocess.h | 201 std::vector<CallFrame> callFrames_; member in StackPreprocess
|
/developtools/hiperf/include/ |
H A D | perf_event_record.h | 262 static std::vector<DfxFrame> callFrames_; member in OHOS::Developtools::HiPerf::PerfRecordSample
|