Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 15 of 15) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
Dcatchframe_local.cpp114 std::vector<DfxFrame> frames; in CatchFrame() local
117 CatchFrameCurrTid(frames, releaseThread); in CatchFrame()
119 CatchFrameLocalTid(nstids[i], frames, releaseThread); in CatchFrame()
121 mapFrames[nstids[i]] = frames; in CatchFrame()
126 bool DfxCatchFrameLocal::CatchFrame(int tid, std::vector<DfxFrame>& frames, bool releaseThread) in CatchFrame() argument
138 return CatchFrameCurrTid(frames, releaseThread); in CatchFrame()
150 return CatchFrameLocalTid(nstid, frames, releaseThread); in CatchFrame()
153 bool DfxCatchFrameLocal::CatchFrameCurrTid(std::vector<DfxFrame>& frames, bool releaseThread) in CatchFrameCurrTid() argument
163 frames.clear(); in CatchFrameCurrTid()
164 frames = thread.GetFrames(); in CatchFrameCurrTid()
[all …]
Dbacktrace_local.cpp45 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool … in GetBacktraceFramesByTid() argument
66 frames.clear(); in GetBacktraceFramesByTid()
67 frames = thread.GetFrames(); in GetBacktraceFramesByTid()
73 std::vector<DfxFrame> frames; in GetBacktraceStringByTid() local
74 bool ret = GetBacktraceFramesByTid(frames, tid, skipFrameNum + 1, fast); in GetBacktraceStringByTid()
77 out = DfxFrameFormat::GetFramesStr(frames); in GetBacktraceStringByTid()
83 std::vector<DfxFrame> frames; in PrintBacktrace() local
84 bool ret = GetBacktraceFramesByTid(frames, BACKTRACE_CURRENT_THREAD, SKIP_ONE_FRAME, fast); in PrintBacktrace()
89 for (auto const& frame : frames) { in PrintBacktrace()
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_frame_format.cpp63 std::string DfxFrameFormat::GetFramesStr(const std::vector<DfxFrame>& frames) in GetFramesStr() argument
65 if (frames.size() == 0) { in GetFramesStr()
69 for (const auto& frame : frames) { in GetFramesStr()
75 std::string DfxFrameFormat::GetFramesStr(const std::vector<std::shared_ptr<DfxFrame>>& frames) in GetFramesStr() argument
77 if (frames.size() == 0) { in GetFramesStr()
81 for (const auto& frame : frames) { in GetFramesStr()
87 …ector<std::shared_ptr<DfxFrame>> DfxFrameFormat::ConvertFrames(const std::vector<DfxFrame>& frames) in ConvertFrames() argument
90 for (const auto& frame : frames) { in ConvertFrames()
/base/hiviewdfx/faultloggerd/interfaces/common/
Ddfx_frame_format.h52 static std::string GetFramesStr(const std::vector<DfxFrame>& frames);
60 static std::string GetFramesStr(const std::vector<std::shared_ptr<DfxFrame>>& frames);
68 … static std::vector<std::shared_ptr<DfxFrame>> ConvertFrames(const std::vector<DfxFrame>& frames);
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/
Dunwinder_test.cpp112 const auto& frames = unwinder.GetFrames(); variable
113 ASSERT_GT(frames.size(), 0);
144 const auto& frames = unwinder.GetFrames(); variable
145 ASSERT_GT(frames.size(), 0);
173 const auto& frames = unwinder.GetFrames(); variable
174 ASSERT_GT(frames.size(), 0);
201 const auto& frames = unwinder.GetFrames(); variable
202 ASSERT_GT(frames.size(), 0);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/include/
Dcatchframe_local.h61 bool CatchFrame(int tid, std::vector<DfxFrame>& frames, bool releaseThread = false);
79 bool CatchFrameCurrTid(std::vector<DfxFrame>& frames, bool releaseThread = false);
80 bool CatchFrameLocalTid(int tid, std::vector<DfxFrame>& frames, bool releaseThread = false);
Dbacktrace_local.h36 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool …
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
Dfault_stack_test.cpp144 std::vector<DfxFrame> frames; variable
147 ASSERT_EQ(true, catcher.CatchFrame(getpid(), frames));
148 ASSERT_GT(frames.size(), 0);
149 GTEST_LOG_(INFO) << "frame size:" << frames.size();
167 stack->CollectStackInfo(DfxFrameFormat::ConvertFrames(frames));
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/
Dbacktrace_local_test.cpp135 const auto& frames = thread.GetFrames(); variable
136 ASSERT_GT(frames.size(), 0);
137 for (const auto& frame : frames) {
188 const auto& frames = thread.GetFrames(); variable
189 ASSERT_GT(frames.size(), 0);
Dcatchframe_local_test.cpp198 std::vector<DfxFrame> frames; variable
211 result = dumplog.CatchFrame(g_tid, frames);
212 for (auto& frame : frames) {
231 EXPECT_GT(frames.size(), 0) << "CatchFrameLocalTest006 Failed";
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_fault_stack.cpp75 bool FaultStack::CollectStackInfo(const std::vector<std::shared_ptr<DfxFrame>> &frames) in CollectStackInfo() argument
77 if (frames.empty()) { in CollectStackInfo()
89 auto firstFrame = frames.at(0); in CollectStackInfo()
94 for (index = 1; index < frames.size(); index++) { in CollectStackInfo()
99 auto frame = frames.at(index); in CollectStackInfo()
Dprinter.cpp99 const auto& frames = thread->GetFrames(); in PrintThreadBacktraceByConfig() local
100 if (frames.size() == 0) { in PrintThreadBacktraceByConfig()
104 for (const auto& frame : frames) { in PrintThreadBacktraceByConfig()
Ddfx_fault_stack.h40 bool CollectStackInfo(const std::vector<std::shared_ptr<DfxFrame>> &frames);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack/include/
Dcallstack.h146 void LogFrame(const std::string msg, const std::vector<CallFrame> &frames);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack/src/
Dcallstack.cpp699 void CallStack::LogFrame(const std::string msg, const std::vector<CallFrame> &frames) argument
703 for (auto frame : frames) {