Home
last modified time | relevance | path

Searched refs:writer_ (Results 1 - 21 of 21) sorted by relevance

/developtools/profiler/device/plugins/api/src/
H A Dwriter_adapter.cpp31 writer_ = writer; in SetWriter()
36 return writer_; in GetWriter()
48 if (writerAdaptor && writerAdaptor->writer_) { in WriteFunc()
49 return writerAdaptor->writer_->Write(data, size); in WriteFunc()
57 if (writerAdaptor && writerAdaptor->writer_) { in FlushFunc()
58 return writerAdaptor->writer_->Flush(); in FlushFunc()
66 if (writerAdaptor && writerAdaptor->writer_) { in StartReportFunc()
67 return writerAdaptor->writer_->StartReport(); in StartReportFunc()
75 if (writerAdaptor && writerAdaptor->writer_) { in FinishReportFunc()
76 writerAdaptor->writer_ in FinishReportFunc()
[all...]
H A Dwriter_adapter.h41 WriterPtr writer_; member in WriterAdapter
/developtools/profiler/device/plugins/ffrt_profiler/client/src/
H A Dffrt_profiler_socker_client.cpp41 if (writer_) { in ~FfrtProfilerSocketClient()
42 writer_->Flush(); in ~FfrtProfilerSocketClient()
45 writer_ = nullptr; in ~FfrtProfilerSocketClient()
80 writer_ = std::make_shared<FfrtProfilerWriter>(smbName, config->shmSize, smbFd_, eventFd_, config->block); in ProtocolProc()
88 if (writer_ == nullptr || unixSocketClient_ == nullptr || g_disableHook) { in SendFfrtProfilerData()
99 bool ret = writer_->WriteWithPayloadTimeout( in SendFfrtProfilerData()
110 writer_->Flush(); in SendFfrtProfilerData()
117 if (writer_ == nullptr || unixSocketClient_ == nullptr) { in Flush()
120 writer_->Flush(); in Flush()
/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dresult_transporter.cpp32 : name_(name), flushThreshold_(DEFAULT_FLUSH_THRESHOLD), flushInterval_(DEFAULT_FLUSH_INTERVAL), writer_(writer) in ResultTransporter()
67 if (writer_ == nullptr || writer_->write == nullptr) { in Write()
80 writer_->write(writer_, buffer_.data(), buffer_.size()); in Write()
86 if (writer_ == nullptr || writer_->flush == nullptr) { in Flush()
89 writer_->flush(writer_); in Flush()
/developtools/profiler/device/plugins/network_profiler/client/src/
H A Dnetwork_profiler_socker_client.cpp40 if (writer_) { in ~NetworkProfilerSocketClient()
41 writer_->Flush(); in ~NetworkProfilerSocketClient()
44 writer_ = nullptr; in ~NetworkProfilerSocketClient()
74 writer_ = std::make_shared<NetworkProfilerWriter>(smbName, config->shmSize, smbFd_, eventFd_, config->block); in ProtocolProc()
84 if (writer_ == nullptr || unixSocketClient_ == nullptr || g_disableHook) { in SendNetworkProfilerData()
91 bool ret = writer_->WriteWithPayloadTimeout( in SendNetworkProfilerData()
101 writer_->Flush(); in SendNetworkProfilerData()
107 if (writer_ == nullptr || unixSocketClient_ == nullptr) { in Flush()
110 writer_->Flush(); in Flush()
/developtools/profiler/device/plugins/network_profiler/service/src/
H A Dnetwork_profiler_handle.cpp42 writer_ = writer; in SetWriter()
121 if (writer_ == nullptr) { in FlushData()
122 PROFILER_LOG_ERROR(LOG_CORE, "Flush writer_ is nullptr"); in FlushData()
125 writer_->Write(buffer_.get(), length); in FlushData()
126 writer_->Flush(); in FlushData()
H A Dnetwork_profiler_manager.cpp345 writer_ = std::make_shared<BufferWriter>("network-profiler", VERSION, bufferSize, smbFd, eventFd, agentIndex_); in CreateWriter()
349 writerAdapter_->SetWriter(writer_); in CreateWriter()
351 g_buffWriter = writer_; in CreateWriter()
/developtools/profiler/interfaces/kits/test/unittest/
H A Dplugin_module_api_test.cpp50 WriterStruct* writer_; member in __anon2570::PluginModuleApiTest
63 writer_ = nullptr; in SetUp()
211 EXPECT_EQ(streamCallbacks_->onRegisterWriterStruct(writer_), 0); in HWTEST_F()
233 writer_ = &writer; in HWTEST_F()
234 EXPECT_EQ(streamCallbacks_->onRegisterWriterStruct(writer_), 0); in HWTEST_F()
257 writer_ = &writer; in HWTEST_F()
258 EXPECT_EQ(streamCallbacks_->onRegisterWriterStruct(writer_), 0); in HWTEST_F()
311 writer_ = &writer; in HWTEST_F()
312 streamCallbacks_->onRegisterWriterStruct(writer_); in HWTEST_F()
337 writer_ in HWTEST_F()
[all...]
/developtools/profiler/device/plugins/network_profiler/client/include/
H A Dnetwork_profiler_socker_client.h49 writer_ = nullptr; in Reset()
57 std::shared_ptr<NetworkProfilerWriter> writer_{nullptr};
/developtools/profiler/device/plugins/ffrt_profiler/service/src/
H A Dffrt_profiler_handle.cpp40 writer_ = writer; in SetWriter()
169 if (writer_ == nullptr) { in FlushData()
170 PROFILER_LOG_ERROR(LOG_CORE, "Flush writer_ is nullptr"); in FlushData()
173 writer_->Write(buffer_.get(), length); in FlushData()
174 writer_->Flush(); in FlushData()
H A Dffrt_profiler_manager.cpp336 writer_ = std::make_shared<BufferWriter>("ffrt-profiler", VERSION, bufferSize, smbFd, eventFd, agentIndex_); in CreateWriter()
340 writerAdapter_->SetWriter(writer_); in CreateWriter()
342 g_buffWriter = writer_; in CreateWriter()
/developtools/profiler/device/plugins/ffrt_profiler/client/include/
H A Dffrt_profiler_socker_client.h53 std::shared_ptr<FfrtProfilerWriter> writer_{nullptr};
/developtools/profiler/device/plugins/ftrace_plugin/include/
H A Dresult_transporter.h64 WriterStructPtr writer_ = nullptr; member in ResultTransporter
/developtools/profiler/device/plugins/ffrt_profiler/service/include/
H A Dffrt_profiler_handle.h65 std::shared_ptr<Writer> writer_{nullptr};
H A Dffrt_profiler_manager.h85 std::shared_ptr<Writer> writer_{nullptr};
/developtools/profiler/device/plugins/network_profiler/service/include/
H A Dnetwork_profiler_handle.h64 std::shared_ptr<Writer> writer_{nullptr};
H A Dnetwork_profiler_manager.h85 std::shared_ptr<Writer> writer_{nullptr};
/developtools/profiler/device/plugins/native_daemon/src/
H A Dstack_preprocess.cpp136 std::shared_ptr<TraceFileWriter> tfPtr = std::static_pointer_cast<TraceFileWriter>(writer_); in FinishTraceFile()
144 writer_ = writer; in SetWriter()
1304 if (writer_ == nullptr) { in Flush()
1305 PROFILER_LOG_ERROR(LOG_CORE, "Flush writer_ is nullptr"); in Flush()
1308 writer_->Write(src, size); in Flush()
1309 writer_->Flush(); in Flush()
1486 writer_->ResetPos(); in WriteHookConfig()
1487 profilerPluginData_.Reset(writer_->GetCtx()); in WriteHookConfig()
1505 writer_->ResetPos(); in StartReport()
1506 profilerPluginData_.Reset(writer_ in StartReport()
[all...]
H A Dhook_manager.cpp661 writer_ = std::make_shared<BufferWriter>(pluginName, VERSION, bufferSize, smbFd, eventFd, agentIndex_); in CreateWriter()
672 RegisterWriter(writer_); in CreateWriter()
675 writerAdapter_->SetWriter(writer_); in CreateWriter()
/developtools/profiler/device/plugins/native_daemon/include/
H A Dhook_manager.h159 std::shared_ptr<Writer> writer_{nullptr};
H A Dstack_preprocess.h187 std::shared_ptr<Writer> writer_ = nullptr; member in StackPreprocess

Completed in 16 milliseconds