Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dfile_path_helper_test.cpp59 std::fstream stream {}; in HWTEST_F_L0() local
60 stream.open(realPath, std::ios::out); in HWTEST_F_L0()
61 EXPECT_EQ(stream.good(), true); in HWTEST_F_L0()
64 stream.close(); in HWTEST_F_L0()
65 stream.clear(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_test.cpp140 FileStream stream(fileName.c_str()); in HWTEST_F_L0() local
141 heapProfile->StopHeapTracking(&stream, nullptr); in HWTEST_F_L0()
194 FileStream stream(fileName.c_str()); in HWTEST_F_L0() local
196 heapProfile->StopHeapTracking(&stream, &testProgress); in HWTEST_F_L0()
249 FileStream stream(fileName.c_str()); in HWTEST_F_L0() local
251 heapProfile->DumpHeapSnapshot(DumpFormat::JSON, &stream, &testProgress, true, true, false); in HWTEST_F_L0()
330 TestStream stream; in HWTEST_F_L0() local
331 stream.Clear(); in HWTEST_F_L0()
332 EXPECT_TRUE(!stream.Good()); in HWTEST_F_L0()
334 heapProfile->DumpHeapSnapshot(DumpFormat::JSON, &stream, &testProgress, true, true, false); in HWTEST_F_L0()
[all …]
Dhprof_test.cpp129 FileStream stream(filePath.c_str()); in GenerateSnapShot() local
131 heapProfile->DumpHeapSnapshot(DumpFormat::JSON, &stream); in GenerateSnapShot()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_profiler_interface.h43 … virtual bool DumpHeapSnapshot(DumpFormat dumpFormat, Stream *stream, Progress *progress = nullptr,
46 …virtual bool StartHeapTracking(double timeInterval, bool isVmMode = true, Stream *stream = nullptr,
48 virtual bool UpdateHeapTracking(Stream *stream) = 0;
49 …virtual bool StopHeapTracking(Stream *stream, Progress *progress = nullptr, bool newThread = true)…
Dheap_tracker.h33 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()
Dheap_snapshot_json_serializer.h38 explicit StreamWriter(Stream *stream) in StreamWriter() argument
39 : stream_(stream), chunkSize_(stream->GetSize()), chunk_(chunkSize_), current_(0) in StreamWriter()
96 bool Serialize(HeapSnapshot *snapshot, Stream *stream);
Dheap_profiler.cpp135 bool HeapProfiler::DumpHeapSnapshot(DumpFormat dumpFormat, Stream *stream, Progress *progress, in DumpHeapSnapshot() argument
154 if (!stream->Good()) { in DumpHeapSnapshot()
160 auto serializerResult = jsonSerializer_->Serialize(snapshot, stream); in DumpHeapSnapshot()
165 bool HeapProfiler::StartHeapTracking(double timeInterval, bool isVmMode, Stream *stream, in StartHeapTracking() argument
174 heapTracker_ = std::make_unique<HeapTracker>(snapshot, timeInterval, stream); in StartHeapTracking()
183 bool HeapProfiler::UpdateHeapTracking(Stream *stream) in UpdateHeapTracking() argument
195 if (stream != nullptr) { in UpdateHeapTracking()
196 snapshot->PushHeapStat(stream); in UpdateHeapTracking()
202 bool HeapProfiler::StopHeapTracking(Stream *stream, Progress *progress, bool newThread) in StopHeapTracking() argument
227 return jsonSerializer_->Serialize(snapshot, stream); in StopHeapTracking()
Dheap_profiler.h78 bool DumpHeapSnapshot(DumpFormat dumpFormat, Stream *stream, Progress *progress = nullptr,
83 bool StartHeapTracking(double timeInterval, bool isVmMode = true, Stream *stream = nullptr,
85 …bool StopHeapTracking(Stream *stream, Progress *progress = nullptr, bool newThread = true) overrid…
86 bool UpdateHeapTracking(Stream *stream) override;
Dheap_snapshot_json_serializer.cpp31 bool HeapSnapshotJSONSerializer::Serialize(HeapSnapshot *snapshot, Stream *stream) in Serialize() argument
38 writer_ = new StreamWriter(stream); in Serialize()
/arkcompiler/ets_runtime/ecmascript/napi/
Ddfx_jsnapi.cpp58 FileStream stream(path); in DumpHeapSnapshot() local
59 DumpHeapSnapshot(vm, dumpFormat, &stream, nullptr, isVmMode, isPrivate, captureNumericValue); in DumpHeapSnapshot()
66 … [[maybe_unused]] Stream *stream, [[maybe_unused]] Progress *progress, in DumpHeapSnapshot() argument
74 heapProfile->DumpHeapSnapshot(ecmascript::DumpFormat(dumpFormat), stream, progress, in DumpHeapSnapshot()
117 FileDescriptorStream stream(fd); in DumpHeapSnapshot() local
118 DumpHeapSnapshot(vm, dumpFormat, &stream, nullptr, isVmMode, isPrivate, captureNumericValue); in DumpHeapSnapshot()
166 [[maybe_unused]] bool isVmMode, [[maybe_unused]] Stream *stream, in StartHeapTracking() argument
173 … return heapProfile->StartHeapTracking(timeInterval, isVmMode, stream, traceAllocation, newThread); in StartHeapTracking()
180 …l DFXJSNApi::UpdateHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stream) in UpdateHeapTracking() argument
186 return heapProfile->UpdateHeapTracking(stream); in UpdateHeapTracking()
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Dbit_table.h35 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
57stream.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) in Decode() argument
420 auto columns = VarintPack::Read<NUM_COLUMNS + 1>(stream); in Decode()
429 region_ = stream->ReadRegion(GetRowsCount() * GetRowSizeInBits()); in Decode()
[all …]
Dregmask.h295 inline std::ostream &operator<<(std::ostream &stream, const RegMask &mask)
297 mask.Dump(stream);
298 return stream;
Dlogger.cpp206 std::ofstream stream(log_file); in InitializeFileLogging() local
207 if (stream) { in InitializeFileLogging()
209 logger = new FastFileLogger(std::move(stream), level, component_mask); in InitializeFileLogging()
211 logger = new FileLogger(std::move(stream), level, component_mask); in InitializeFileLogging()
Dlogger.h338 FileLogger(std::ofstream &&stream, Level level, ComponentMask component_mask) in FileLogger() argument
339 : Logger(level, component_mask), stream_(std::forward<std::ofstream>(stream)) in FileLogger()
360 FastFileLogger(std::ofstream &&stream, Level level, ComponentMask component_mask) in FastFileLogger() argument
361 …Logger(level, component_mask, Logger::Level::WARNING), stream_(std::forward<std::ofstream>(stream)) in FastFileLogger()
/arkcompiler/runtime_core/libpandafile/templates/
Dsource_lang_enum.h.erb51 inline std::ostream &operator<<(std::ostream &stream, SourceLang lang)
61 stream << "<%= name %>";
65 stream << "Panda Assembly";
70 return stream;
Dtype.h.erb234 friend std::ostream &operator<<(std::ostream &stream, const Type &type) {
238 stream << "<%= PandaFile::asm_name(type) %>";
242 return stream;
/arkcompiler/ets_runtime/ecmascript/napi/include/
Ddfx_jsnapi.h55 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, Stream *stream, Progress *progress …
64 … Stream *stream = nullptr, bool traceAllocation = false, bool newThread = true);
65 static bool UpdateHeapTracking(const EcmaVM *vm, Stream *stream);
67 …static bool StopHeapTracking(const EcmaVM *vm, Stream *stream, Progress *progress = nullptr, bool …
/arkcompiler/ets_runtime/test/fuzztest/dumpheapsnapshot3_fuzzer/
Ddumpheapsnapshot3_fuzzer.cpp50 FileStream stream(path); in DumpHeapSnapshot3FuzzTest() local
52 …DFXJSNApi::DumpHeapSnapshot(vm, input, &stream, progress, isVmMode, isPrivate, captureNumericValue… in DumpHeapSnapshot3FuzzTest()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_info.cpp140 bool PGOProfilerHeader::ParseFromText(std::ifstream &stream) in ParseFromText() argument
143 if (std::getline(stream, header)) { in ParseFromText()
167 bool PGOProfilerHeader::ProcessToText(std::ofstream &stream) const in ProcessToText()
172 stream << VERSION_HEADER << InternalGetVersion() << NEW_LINE; in ProcessToText()
174stream << "FileSize: " << GetFileSize() << " ,HeaderSize: " << GetHeaderSize() << " ,Checksum: " <… in ProcessToText()
220 bool PGOPandaFileInfos::ParseFromText(std::ifstream &stream) in ParseFromText() argument
223 while (std::getline(stream, pandaFileInfo)) { in ParseFromText()
248 void PGOPandaFileInfos::ProcessToText(std::ofstream &stream) const in ProcessToText()
262 stream << pandaFileInfo; in ProcessToText()
364 bool PGOMethodTypeSet::ProcessToBinary(std::stringstream &stream) const in ProcessToBinary()
[all …]
Dpgo_profiler_info.h178 bool ParseFromText(std::ifstream &stream);
179 bool ProcessToText(std::ofstream &stream) const;
289 void ProcessToText(std::ofstream &stream) const;
290 bool ParseFromText(std::ifstream &stream);
538 bool ProcessToBinary(std::stringstream &stream) const;
850 void ProcessToText(uint32_t threshold, const CString &recordName, std::ofstream &stream) const;
1046 bool ParseFromText(std::ifstream &stream);
1047 void ProcessToText(std::ofstream &stream) const;
1060 …oBinaryForLayout(NativeAreaAllocator *allocator, const SaveTask *task, std::fstream &stream) const;
/arkcompiler/ets_runtime/ecmascript/napi/test/
Ddfx_jsnapi_tests.cpp112 ecmascript::FileStream stream(filePath); in HWTEST_F_L0() local
113 EXPECT_TRUE(stream.Good()); in HWTEST_F_L0()
122 …DFXJSNApi::DumpHeapSnapshot(vm_, dumpFormat, &stream, progress, isVmMode, isPrivate, captureNumeri… in HWTEST_F_L0()
172 ecmascript::FileStream *stream = nullptr; in HWTEST_F_L0() local
174 … startResult = DFXJSNApi::StartHeapTracking(vm_, timeInterval, isVmMode, stream, traceAllocation); in HWTEST_F_L0()
220 ecmascript::FileStream *stream = nullptr; in HWTEST_F_L0() local
222 … startResult = DFXJSNApi::StartHeapTracking(vm_, timeInterval, isVmMode, stream, traceAllocation); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp125 std::stringstream stream; in GetNativeStack() local
147 stream << addr; in GetNativeStack()
153 size - methodNameStrLength - napiBeginLength, stream.str().c_str()); in GetNativeStack()
154 uint8_t srcLength = stream.str().size(); in GetNativeStack()
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/get_resource/
Dget_tool.py30 r = requests.get(url, stream=True)
Dspider.py32 r = requests.get(url, stream=True)
/arkcompiler/runtime_core/docs/diagrams/
Dstacktrace.pusequence32 StackPrinter -> "output stream": Print

12