/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | sample_writer.cpp | 25 void StreamWriter::WriteSample(const SampleInfo &sample) const in WriteSample() 28 ASSERT(sample.stackInfo.managedStackSize <= SampleInfo::StackInfo::MAX_STACK_DEPTH); in WriteSample() 30 static_assert(sizeof(sample.threadInfo.threadId) == sizeof(uint32_t)); in WriteSample() 31 static_assert(sizeof(sample.threadInfo.threadStatus) == sizeof(uint32_t)); in WriteSample() 32 static_assert(sizeof(sample.stackInfo.managedStackSize) == sizeof(uintptr_t)); in WriteSample() 34 writeStreamPtr_->write(reinterpret_cast<const char *>(&sample.threadInfo.threadId), in WriteSample() 35 sizeof(sample.threadInfo.threadId)); in WriteSample() 36 writeStreamPtr_->write(reinterpret_cast<const char *>(&sample.threadInfo.threadStatus), in WriteSample() 37 sizeof(sample.threadInfo.threadStatus)); in WriteSample() 38 writeStreamPtr_->write(reinterpret_cast<const char *>(&sample in WriteSample() [all...] |
H A D | sampling_profiler.cpp | 315 static bool CollectBoundaryFrames(SamplerFrameInfo &frameInfo, SampleInfo &sample, size_t &stackCounter) in CollectBoundaryFrames() argument 324 sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE); in CollectBoundaryFrames() 325 sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in CollectBoundaryFrames() 331 sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE); in CollectBoundaryFrames() 332 sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in CollectBoundaryFrames() 347 static void ProcessCompiledTopFrame(SamplerFrameInfo &frameInfo, SampleInfo &sample, size_t &stackCounter, in ProcessCompiledTopFrame() argument 358 sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE); in ProcessCompiledTopFrame() 359 sample.stackInfo.managedStack[stackCounter].fileId = helpers::ToUnderlying(FrameKind::BRIDGE); in ProcessCompiledTopFrame() 376 sample.stackInfo.managedStack[stackCounter].pandaFilePtr = helpers::ToUnderlying(FrameKind::BRIDGE); in ProcessCompiledTopFrame() 377 sample in ProcessCompiledTopFrame() 390 CollectFrames(SamplerFrameInfo &frameInfo, SampleInfo &sample, size_t &stackCounter) CollectFrames() argument [all...] |
H A D | thread_communicator.cpp | 29 bool ThreadCommunicator::SendSample(const SampleInfo &sample) const in SendSample() 33 const void *buffer = reinterpret_cast<const void *>(&sample); in SendSample() 39 << "unexpected sample write - sended " << syscallResult << " bytes"; in SendSample() 43 bool ThreadCommunicator::ReadSample(SampleInfo *sample) const in ReadSample() 47 void *buffer = reinterpret_cast<void *>(sample); in ReadSample() 55 << "unexpected sample read - received " << syscallResult << " bytes"; in ReadSample()
|
H A D | thread_communicator.h | 60 PANDA_PUBLIC_API bool SendSample(const SampleInfo &sample) const; 61 PANDA_PUBLIC_API bool ReadSample(SampleInfo *sample) const;
|
H A D | sample_writer.h | 43 * - sample row (sample information) 46 * first 8 byte is 0xFFFFFFFF (to recognize that it's not a sample row) 51 * sample row for 64-bits: 52 * first 4 bytes is thread id of thread from sample was obtained 53 * next 4 bytes is thread status of thread from sample was obtained 88 PANDA_PUBLIC_API void WriteSample(const SampleInfo &sample) const;
|
/arkcompiler/runtime_core/static_core/tools/sampler/ |
H A D | trace_dumper.cpp | 20 void TraceDumper::DumpTraces(const SampleInfo &sample, size_t count) in DumpTraces() argument 22 std::ofstream &stream = ResolveStream(sample); in DumpTraces() 24 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() 95 std::ofstream &SingleCSVDumper::ResolveStream(const SampleInfo &sample) in ResolveStream() argument 98 WriteThreadId(stream_, sample.threadInfo.threadId); in ResolveStream() 101 WriteThreadStatus(stream_, sample.threadInfo.threadStatus); in ResolveStream() 107 std::ofstream &MultipleCSVDumper::ResolveStream(const SampleInfo &sample) in ResolveStream() argument 109 auto it = threadIdMap_.find(sample in ResolveStream() [all...] |
H A D | aspt_converter.cpp | 25 SampleInfo sample; in CollectTracesStats() local 26 while (reader_.GetNextSample(&sample)) { in CollectTracesStats() 31 sample.threadInfo.threadId = 0; in CollectTracesStats() 37 sample.threadInfo.threadStatus = SampleInfo::ThreadStatus::UNDECLARED; in CollectTracesStats() 40 auto it = stackTraces_.find(sample); in CollectTracesStats() 42 stackTraces_.insert({sample, 1}); in CollectTracesStats() 116 for (auto &[sample, count] : stackTraces_) { in DumpResolvedTracesAsCSV() 117 ASSERT(sample.stackInfo.managedStackSize <= SampleInfo::StackInfo::MAX_STACK_DEPTH); in DumpResolvedTracesAsCSV() 118 dumper->DumpTraces(sample, count); in DumpResolvedTracesAsCSV()
|
H A D | trace_dumper.h | 51 void DumpTraces(const SampleInfo &sample, size_t count); 60 virtual std::ofstream &ResolveStream(const SampleInfo &sample) = 0; 87 std::ofstream &ResolveStream(const SampleInfo &sample) override; 107 std::ofstream &ResolveStream(const SampleInfo &sample) override;
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | weighted_adaptive_tlab_average.h | 58 for (auto &sample : samples_) { in ComputeNewSumAndResetSamples() 59 if (sample.second != 0) { in ComputeNewSumAndResetSamples() 61 ? static_cast<float>(sample.first) / sample.second in ComputeNewSumAndResetSamples() 62 : static_cast<float>(sample.first) / sample.second * weight_ + in ComputeNewSumAndResetSamples() 67 // it means that zero tlab is the only sample that we currently have in ComputeNewSumAndResetSamples()
|
/arkcompiler/ets_runtime/test/aottest/bigint_typed_array_constructors/ |
H A D | bigint_typed_array_constructors.js | 22 var sample = new TA([1n, 2n, 3n]);
23 result = sample.findIndex(function() { return NaN; });
|
/arkcompiler/ets_runtime/test/moduletest/typedarrayslice/ |
H A D | typearrayslice.js | 42 var sample = new BigInt64Array([40n, 41n, 42n, 43n]); 49 sample.slice();
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_Arrays.cpp | 58 extern "C" ObjectHeader *StdCoreAllocGenericArray(ets_int len, EtsObject *sample) in StdCoreAllocGenericArray() argument 61 if (sample != nullptr) { in StdCoreAllocGenericArray() 62 klass = sample->GetClass()->GetComponentType(); in StdCoreAllocGenericArray()
|
/arkcompiler/ets_runtime/ecmascript/dfx/tracing/ |
H A D | tracing.cpp | 225 for (auto sample : cpuProfileArg.samples) { in TraceEventUpdateCpuProfiler() 226 args += std::to_string(sample) + ","; in TraceEventUpdateCpuProfiler() 233 for (auto sample : cpuProfileArg.samples) { in TraceEventUpdateCpuProfiler() 234 args += std::to_string(profileInfo->nodes[profileInfo->samples[sample - 1]].codeEntry.lineNumber + 1) + ","; in TraceEventUpdateCpuProfiler()
|
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/sampler/ |
H A D | sampling_profiler_test.cpp | 421 static void CommunicatorStressWritterThread(const ThreadCommunicator *com, const SampleInfo &sample, in CommunicatorStressWritterThread() argument 425 // If the sample write failed we retrying to send it in CommunicatorStressWritterThread() 426 if (!com->SendSample(sample)) { in CommunicatorStressWritterThread() 427 std::cerr << "Failed to send a sample" << std::endl; in CommunicatorStressWritterThread() 445 // If the sample write failed we retrying to send it in TEST_F() 447 std::cerr << "Failed to read a sample" << std::endl; in TEST_F() 455 // Testing reader and writer by writing and reading from .aspt one sample 579 // Send sample to listener and check it inside the file 609 // Send lots of sample to listener and check it inside the file 716 SampleInfo sample; in TEST_F() local [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_tracker_third_test.cpp | 165 std::string sample = "\"samples\":[]"; in HWTEST_F_L0() local 167 uint32_t sampleSize = sample.size(); in HWTEST_F_L0() 175 if (line.substr(0U, sampleSize) == sample) { in HWTEST_F_L0()
|
H A D | heap_tracker_first_test.cpp | 262 std::string sample = "\"samples\":[]";
in HWTEST_F_L0() local 264 uint32_t sampleSize = sample.size();
in HWTEST_F_L0() 272 if (line.substr(0U, sampleSize) == sample) {
in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | type_info_accessors.cpp | 29 auto sample = pgoType_.GetPGOSampleType(); in PGOSampleTypeToParamType() local 30 if (sample->IsInt()) { in PGOSampleTypeToParamType() 32 } else if (sample->IsIntOverFlow()) { in PGOSampleTypeToParamType() 34 } else if (sample->IsDouble()) { in PGOSampleTypeToParamType() 36 } else if (sample->IsString()) { in PGOSampleTypeToParamType() 38 } else if (sample->IsBigInt()) { in PGOSampleTypeToParamType() 40 } else if (sample->IsBoolean()) { in PGOSampleTypeToParamType() 42 } else if (sample->IsNumber()) { in PGOSampleTypeToParamType() 44 } else if (sample->IsNumberOrString()) { in PGOSampleTypeToParamType()
|
/arkcompiler/toolchain/tooling/base/ |
H A D | pt_types.cpp | 2327 error += "'sample' format invalid;"; in Create() 2344 error += "'sample' format invalid;"; in Create() 2385 for (const auto &sample : samples) { in FromSamplingInfo() 2387 sampleTemp->SetSize(sample.size_ * sample.count_); in FromSamplingInfo() 2388 sampleTemp->SetNodeId(sample.nodeId_); in FromSamplingInfo() 2389 sampleTemp->SetOrdinal(sample.ordinal_); in FromSamplingInfo()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
H A D | cocos_worker_test.js | 9314 6025: "Cannot handle sub-byte bits per sample", [all...] |