Home
last modified time | relevance | path

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

/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dsample_writer.cpp28 ASSERT(sample.stackInfo.managedStackSize <= SampleInfo::StackInfo::MAX_STACK_DEPTH); in WriteSample()
32 static_assert(sizeof(sample.stackInfo.managedStackSize) == sizeof(uintptr_t)); in WriteSample()
38 writeStreamPtr_->write(reinterpret_cast<const char *>(&sample.stackInfo.managedStackSize), in WriteSample()
39 sizeof(sample.stackInfo.managedStackSize)); in WriteSample()
40 writeStreamPtr_->write(reinterpret_cast<const char *>(sample.stackInfo.managedStack.data()), in WriteSample()
41 … sample.stackInfo.managedStackSize * sizeof(SampleInfo::ManagedStackFrameId)); in WriteSample()
Dsample_info.h52 StackInfo stackInfo {};
148 if (lhs.stackInfo != rhs.stackInfo) {
168 auto stackInfo = s.stackInfo;
169 …ASSERT(stackInfo.managedStackSize <= panda::tooling::sampler::SampleInfo::StackInfo::MAX_STACK_DEP…
171 for (size_t i = 0; i < stackInfo.managedStackSize; ++i) {
172 summ += stackInfo.managedStack[i].pandaFilePtr ^ stackInfo.managedStack[i].fileId;
176 (summ ^ stackInfo.managedStackSize) +
Dsampling_profiler.cpp351 …sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE… in SigProfSamplingProfilerHandler()
352 … sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in SigProfSamplingProfilerHandler()
358 …sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE… in SigProfSamplingProfilerHandler()
359 … sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in SigProfSamplingProfilerHandler()
379 …sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE… in SigProfSamplingProfilerHandler()
380 … sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in SigProfSamplingProfilerHandler()
391 …sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE… in SigProfSamplingProfilerHandler()
392 … sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in SigProfSamplingProfilerHandler()
420 sample.stackInfo.managedStack[stackCounter].pandaFilePtr = pfId; in SigProfSamplingProfilerHandler()
421 sample.stackInfo.managedStack[stackCounter].fileId = method->GetFileId().GetOffset(); in SigProfSamplingProfilerHandler()
[all …]
Dsample_reader-inl.h115 …sampleOut->stackInfo.managedStackSize = ReadUintptrTBitMisaligned(&currentSamplePtr[SAMPLE_STACK_S… in GetNextSample()
117 ASSERT(sampleOut->stackInfo.managedStackSize <= SampleInfo::StackInfo::MAX_STACK_DEPTH); in GetNextSample()
118 auto copySize = sampleOut->stackInfo.managedStackSize * sizeof(SampleInfo::ManagedStackFrameId); in GetNextSample()
120 …memcpy_s(sampleOut->stackInfo.managedStack.data(), copySize, currentSamplePtr + SAMPLE_STACK_OFFSE… in GetNextSample()
/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp242 CString stackInfo = ConvertToString(*stack); in IsQuickFixCausedException() local
243 CUnorderedSet<CString> methodNames = ParseStackInfo(stackInfo); in IsQuickFixCausedException()
259 CUnorderedSet<CString> QuickFixManager::ParseStackInfo(const CString &stackInfo) in ParseStackInfo() argument
267 while (lineIndex != stackInfo.length() - 1) { in ParseStackInfo()
268 firstIndex = stackInfo.find(" at ", lineIndex + 1); in ParseStackInfo()
269 nextIndex = stackInfo.find("(", lineIndex + 1); in ParseStackInfo()
270 CString methodName = stackInfo.substr(firstIndex + methodNameOffsetToFirstIndex, in ParseStackInfo()
273 lineIndex = stackInfo.find("\n", lineIndex + 1); in ParseStackInfo()
Dquick_fix_manager.h50 CUnorderedSet<CString> ParseStackInfo(const CString &stackInfo);
/arkcompiler/runtime_core/static_core/tools/sampler/
Dtrace_dumper.cpp24 for (size_t i = sample.stackInfo.managedStackSize; i-- > 0;) { in DumpTraces()
25 uintptr_t pfId = sample.stackInfo.managedStack[i].pandaFilePtr; in DumpTraces()
26 uint64_t fileId = sample.stackInfo.managedStack[i].fileId; in DumpTraces()
Daspt_converter.cpp114 ASSERT(sample.stackInfo.managedStackSize <= SampleInfo::StackInfo::MAX_STACK_DEPTH); in DumpResolvedTracesAsCSV()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp273 const CMap<struct MethodKey, struct FrameInfo> &stackInfo = generator_->GetStackInfo(); in GetStack() local
296 if (stackInfo.count(methodKey) == 0) { in GetStack()
334 const CMap<struct MethodKey, struct FrameInfo> &stackInfo = generator_->GetStackInfo(); in GetStackCallNapi() local
367 if (stackInfo.count(methodKey) == 0) { in GetStackCallNapi()
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/sampler/
Dsampling_profiler_test.cpp77 ps->stackInfo.managedStack[i] = {i, pfId_}; in FullfillFakeSample()
80 ps->stackInfo.managedStackSize = SampleInfo::StackInfo::MAX_STACK_DEPTH; in FullfillFakeSample()
725 if (sample.stackInfo.managedStackSize == 2U) { in TEST_F()
729 ASSERT_NE(sample.stackInfo.managedStackSize, 0); in TEST_F()