/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/ |
H A D | dump.cpp | 20 void CodeInfoProducer::DumpStackMap(const std::unique_ptr<const LLVMStackMap> &stackmap, std::ostream &stream) in DumpStackMap() argument 22 stream << "Header {" << std::endl; in DumpStackMap() 23 stream << " Stack Map Version (current version is 3) [uint8]: " << stackmap->getVersion() << std::endl; in DumpStackMap() 24 stream << "}" << std::endl; in DumpStackMap() 26 stream << "StkSizeRecord [" << stackmap->getNumFunctions() << "]: [" << std::endl; in DumpStackMap() 28 stream << " {" << std::endl; in DumpStackMap() 29 DumpStackMapFunction(rec, stream, " "); in DumpStackMap() 30 stream << " }" << std::endl; in DumpStackMap() 32 stream << ']' << std::endl; in DumpStackMap() 34 stream << "Constant in DumpStackMap() 49 DumpStackMapFunction(const LLVMStackMap::FunctionAccessor &function, std::ostream &stream, const std::string &prefix) DumpStackMapFunction() argument 58 DumpStackMapRecord(const LLVMStackMap::RecordAccessor &record, std::ostream &stream, const std::string &prefix) DumpStackMapRecord() argument 82 DumpStackMapLocation(const LLVMStackMap::LocationAccessor &location, std::ostream &stream, const std::string &prefix) DumpStackMapLocation() argument [all...] |
H A D | code_info_producer.h | 70 static void DumpStackMap(const std::unique_ptr<const LLVMStackMap> &stackmap, std::ostream &stream); 71 static void DumpStackMapFunction(const Function &function, std::ostream &stream, const std::string &prefix = ""); 72 static void DumpStackMapRecord(const Record &record, std::ostream &stream, const std::string &prefix = ""); 73 static void DumpStackMapLocation(const Location &location, std::ostream &stream, const std::string &prefix = "");
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info.cpp | 21 void CodeInfo::Dump(std::ostream &stream) const in Dump() 23 stream << "CodeInfo: vregs_num=" << GetHeader().GetVRegsCount() << ", frame_size=" << GetHeader().GetFrameSize() in Dump() 25 EnumerateTables([this, &stream](size_t index, auto member) { in Dump() 28 table.Dump(stream); in Dump() 33 void CodeInfo::Dump(std::ostream &stream, const StackMap &stackMap, Arch arch) const in Dump() argument 35 stream << "Stackmap #" << stackMap.GetRow() << ": npc=0x" << std::hex << stackMap.GetNativePcUnpacked(arch) in Dump() 38 stream << ", inline_depth=" << (GetInlineDepth(stackMap) + 1); in Dump() 41 stream << ", roots=["; in Dump() 44 stream << "r:0x" << std::hex << GetRootsRegMask(stackMap); in Dump() 49 stream << se in Dump() 58 DumpInlineInfo(std::ostream &stream, const StackMap &stackMap, int depth) const DumpInlineInfo() argument [all...] |
H A D | code_info_builder.cpp | 99 void CodeInfoBuilder::DumpCurrentStackMap(std::ostream &stream) const in DumpCurrentStackMap() 101 stream << "Stackmap #" << (stackMaps_.GetRowsCount() - 1) << ": npc=0x" << std::hex in DumpCurrentStackMap() 105 stream << ", inline_depth=" << inlineInfoStack_.size(); in DumpCurrentStackMap() 109 stream << ", roots=["; in DumpCurrentStackMap() 113 stream << "r:0x" << std::hex << entry[RegisterMask::COLUMN_MASK]; in DumpCurrentStackMap() 118 stream << sep << "s:" << region; in DumpCurrentStackMap() 120 stream << "]"; in DumpCurrentStackMap() 123 stream << ", vregs=" << vregMasks_.GetEntry(currentStackMap_[StackMap::COLUMN_VREG_MASK_INDEX]); in DumpCurrentStackMap() 213 void CodeInfoBuilder::Encode(ArenaVector<uint8_t> *stream, size_t offset) in Encode() argument 215 BitMemoryStreamOut out(stream, offse in Encode() [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/ |
H A D | pgo_proto_transition_type_pool.h | 49 uint32_t ProcessToBinary(PGOContext &context, std::fstream &stream) override 55 auto secInfoPos = stream.tellp(); 56 stream.seekp(secInfo.offset_, std::ofstream::cur); 60 stream.write(reinterpret_cast<const char *>(&(profileTypeRef)), sizeof(PGOProtoTransitionTypeRef)); 62 secInfo.size_ = static_cast<uint32_t>(stream.tellp()) - static_cast<uint32_t>(secInfoPos); 63 auto tail = stream.tellp(); 64 stream.seekp(secInfoPos, std::ofstream::beg); 65 stream.write(reinterpret_cast<const char *>(&(secInfo)), sizeof(SectionInfo)); 66 stream.seekp(tail, std::ofstream::beg); 85 bool ProcessToText(std::ofstream &stream) overrid [all...] |
H A D | pgo_record_pool.h | 58 uint32_t ProcessToBinary([[maybe_unused]] PGOContext &context, std::fstream &stream) override 60 stream << name_ << '\0'; 71 bool ProcessToText(std::ofstream &stream) override 73 stream << name_; 141 uint32_t ProcessToBinary(PGOContext &context, std::fstream &stream) override 147 auto secInfoPos = stream.tellp(); 148 stream.seekp(secInfo.offset_, std::ofstream::cur); 151 stream.write(reinterpret_cast<const char *>(&(profileTypeRef)), sizeof(ApEntityId)); 152 stream.write(entry.second.c_str(), entry.second.length() + 1); 154 secInfo.size_ = static_cast<uint32_t>(stream [all...] |
H A D | pool_template.h | 122 uint32_t ProcessToBinary([[maybe_unused]] PGOContext &context, std::fstream &stream) override 128 auto secInfoPos = stream.tellp(); 129 stream.seekp(secInfo.offset_, std::ofstream::cur); 131 stream.write(reinterpret_cast<const char *>(&(entry.first)), sizeof(ApEntityId)); 132 entry.second.ProcessToBinary(context, stream); 134 secInfo.size_ = static_cast<uint32_t>(stream.tellp()) - static_cast<uint32_t>(secInfoPos); 135 auto tail = stream.tellp(); 136 stream.seekp(secInfoPos, std::ofstream::beg); 137 stream.write(reinterpret_cast<const char *>(&(secInfo)), sizeof(SectionInfo)); 138 stream [all...] |
H A D | pgo_file_info.cpp | 119 bool PGOProfilerHeader::ParseFromText(std::ifstream &stream) in ParseFromText() argument 122 if (std::getline(stream, header)) { in ParseFromText() 149 bool PGOProfilerHeader::ProcessToText(std::ofstream &stream) const in ProcessToText() 154 stream << DumpUtils::VERSION_HEADER << InternalGetVersion() << DumpUtils::NEW_LINE; in ProcessToText() 155 stream << "Compatible an file version: " << ConvToStr(GetCompatibleAnVersion()) << DumpUtils::NEW_LINE; in ProcessToText() 157 stream << "FileSize: " << GetFileSize() << " ,HeaderSize: " << GetHeaderSize() << " ,Checksum: " << std::hex in ProcessToText()
|
H A D | pgo_profile_type_pool.h | 65 uint32_t ProcessToBinary([[maybe_unused]] PGOContext &context, std::fstream &stream) override 68 stream.write(reinterpret_cast<const char *>(&(profileType)), sizeof(ProfileType)); 79 bool ProcessToText(std::ofstream &stream) override 81 stream << type_.GetTypeString();
|
H A D | pgo_file_info.h | 197 bool ParseFromText(std::ifstream &stream); 198 bool ProcessToText(std::ofstream &stream) const; 356 virtual uint32_t ProcessToBinary(PGOContext &context, std::fstream &stream) = 0; 358 virtual bool ProcessToText(std::ofstream &stream) = 0; 360 virtual bool ParseFromText([[maybe_unused]] std::ifstream &stream) in ParseFromText() argument
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_tracker_second_test.cpp | 138 TestStream stream; in HWTEST_F_L0() local 139 stream.Clear(); in HWTEST_F_L0() 140 EXPECT_TRUE(!stream.Good()); in HWTEST_F_L0() 147 heapProfile->DumpHeapSnapshot(&stream, dumpOption, &testProgress); in HWTEST_F_L0() 174 TestStream stream; in HWTEST_F_L0() local 175 stream.Clear(); in HWTEST_F_L0() 176 EXPECT_TRUE(!stream.Good()); in HWTEST_F_L0() 183 heapProfile->DumpHeapSnapshot(&stream, dumpOption, &testProgress); in HWTEST_F_L0() 210 TestStream stream; in HWTEST_F_L0() local 211 stream in HWTEST_F_L0() 246 TestStream stream; HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | file_path_helper_test.cpp | 35 std::fstream stream {}; in HWTEST_F_L0() 36 stream.open(realPath, std::ios::out); in HWTEST_F_L0() 37 EXPECT_EQ(stream.good(), true); in HWTEST_F_L0() 40 stream.close(); in HWTEST_F_L0() 41 stream.clear(); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/tools/sampler/ |
H A D | trace_dumper.cpp | 22 std::ofstream &stream = ResolveStream(sample); in DumpTraces() local 44 stream << fullMethodName << "; "; in DumpTraces() 46 stream << count << "\n"; in DumpTraces() 55 void TraceDumper::WriteThreadId(std::ofstream &stream, uint32_t threadId) in WriteThreadId() argument 57 stream << "thread_id = " << threadId << "; "; in WriteThreadId() 61 void TraceDumper::WriteThreadStatus(std::ofstream &stream, SampleInfo::ThreadStatus threadStatus) in WriteThreadStatus() argument 63 stream << "status = "; in WriteThreadStatus() 67 stream << "active; "; in WriteThreadStatus() 71 stream << "suspended; "; in WriteThreadStatus()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/ |
H A D | asm_printer.cpp | 24 auto stream = encoder->GetStream(); in BindLabel() local 26 *stream << "." << str << ":\n"; in BindLabel() 47 auto stream = encoder->GetStream(); in BindLabel() local 49 *stream << "." << str << ":\n"; in BindLabel() 69 auto stream = encoder->GetStream(); in BindLabel() local 71 *stream << "." << str << ":\n"; in BindLabel()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | compiler_queue_interface.h | 30 PandaOStringStream stream; in GetTaskDescription() local 34 stream << "(method: " << name << ", is_osr: " << std::dec << ctx.IsOsr() in GetTaskDescription() 36 return stream.str(); in GetTaskDescription()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | heap_tracker.h | 33 HeapTrackerSample(HeapSnapshot *snapshot, double timeInterval, Stream *stream) in HeapTrackerSample() argument 34 : timeInterval_(timeInterval), snapshot_(snapshot), stream_(stream) in HeapTrackerSample() 72 HeapTracker(HeapSnapshot *snapshot, double timeInterval, Stream *stream) in HeapTracker() argument 73 : snapshot_(snapshot), sample_(snapshot, timeInterval, stream) {} in HeapTracker()
|
H A D | heap_profiler_interface.h | 53 virtual bool DumpHeapSnapshot(Stream *stream, const DumpSnapShotOption &dumpOption, 59 virtual bool StartHeapTracking(double timeInterval, bool isVmMode = true, Stream *stream = nullptr, 61 virtual bool UpdateHeapTracking(Stream *stream) = 0; 62 virtual bool StopHeapTracking(Stream *stream, Progress *progress = nullptr, bool newThread = true) = 0;
|
H A D | heap_profiler.h | 142 bool DumpHeapSnapshot(Stream *stream, const DumpSnapShotOption &dumpOption, Progress *progress = nullptr) override; 146 bool StartHeapTracking(double timeInterval, bool isVmMode = true, Stream *stream = nullptr, 148 bool StopHeapTracking(Stream *stream, Progress *progress = nullptr, bool newThread = true) override; 149 bool UpdateHeapTracking(Stream *stream) override; 183 bool DoDump(Stream *stream, Progress *progress, const DumpSnapShotOption &dumpOption); 189 bool BinaryDump(Stream *stream, const DumpSnapShotOption &dumpOption);
|
H A D | heap_snapshot_json_serializer.h | 38 explicit StreamWriter(Stream *stream) in StreamWriter() argument 39 : stream_(stream), chunkSize_(stream->GetSize()), chunk_(chunkSize_), current_(0) in StreamWriter() 113 static bool Serialize(HeapSnapshot *snapshot, Stream *stream); 114 static void DumpStringTable(HeapSnapshot *snapshot, Stream *stream);
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | bit_table.h | 35 static std::array<uint32_t, N> Read(BitMemoryStreamIn *stream) in Read() argument 40 auto data = stream->Read<uint64_t>(N * INLINE_BITS); in Read() 46 values[i] = stream->Read<uint32_t>((values[i] - INLINE_MAX) * BITS_PER_BYTE); in Read() 53 static void Write(BitMemoryStreamOut<Container> &stream, const std::array<uint32_t, N> &data) in Write() argument 57 stream.Write(INLINE_MAX + BitsToBytesRoundUp(MinimumBitsToStore(value)), INLINE_BITS); in Write() 59 stream.Write(value, INLINE_BITS); in Write() 64 stream.Write(value, BitsToBytesRoundUp(MinimumBitsToStore(value)) * BITS_PER_BYTE); in Write() 418 void Decode(BitMemoryStreamIn *stream) 420 auto columns = VarintPack::Read<NUM_COLUMNS + 1>(stream); 429 region_ = stream [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | bit_table.h | 35 static std::array<uint32_t, N> Read(BitMemoryStreamIn *stream) in Read() argument 40 auto data = stream->Read<uint64_t>(N * INLINE_BITS); in Read() 46 values[i] = stream->Read<uint32_t>((values[i] - INLINE_MAX) * BITS_PER_BYTE); in Read() 53 static void Write(BitMemoryStreamOut<Container> &stream, const std::array<uint32_t, N> &data) in Write() argument 57 stream.Write(INLINE_MAX + BitsToBytesRoundUp(MinimumBitsToStore(value)), INLINE_BITS); in Write() 59 stream.Write(value, INLINE_BITS); in Write() 64 stream.Write(value, BitsToBytesRoundUp(MinimumBitsToStore(value)) * BITS_PER_BYTE); in Write() 439 void Decode(BitMemoryStreamIn *stream) 441 auto columns = VarintPack::Read<NUM_COLUMNS + 1>(stream); 450 region_ = stream [all...] |
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | lazy.h | 267 C ContainerOf(S stream, 275 while (auto val = stream()) { 282 C ContainerOf(S stream, 290 while (auto val = stream()) { 311 auto FirstElement(Stream stream) 313 return stream(); 317 bool IsLazyStreamEmpty(Stream stream) 319 return !FirstElement(stream); 323 auto Find(Stream stream, Pred pred) 325 return FirstElement(Filter(stream, pre [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | wrapped_module.cpp | 123 void WrappedModule::Dump(llvm::raw_ostream *stream) in Dump() argument 125 *stream << "Wrapped module:\n"; in Dump() 133 *stream << "\tPrimary function '" << function.getName() << "'\n"; in Dump() 140 *stream << "\tInline function '" << function.getName() << "'\n"; in Dump() 145 *stream << "\tTotal: functions = " << functions << ", inlineFunctions = " << inlineFunctions << "\n"; in Dump()
|
/arkcompiler/runtime_core/static_core/compiler/tools/debug/ |
H A D | jit_writer.cpp | 25 void FillData(Span<uint8_t> stream, size_t streamBegin) const override 39 CopyToSpan(stream, data, sizeof(prefix), currPos); 45 CopyToSpan(stream, data, method.GetCode().size(), currPos); 51 CopyToSpan(stream, data, method.GetCodeInfo().size(), currPos);
|
/arkcompiler/ets_runtime/test/fuzztest/dumpheapsnapshot3_fuzzer/ |
H A D | dumpheapsnapshot3_fuzzer.cpp | 49 FileStream stream(path); in DumpHeapSnapshot3FuzzTest() 51 DFXJSNApi::DumpHeapSnapshot(vm, &stream, dumpOption, progress); in DumpHeapSnapshot3FuzzTest()
|