/developtools/profiler/device/plugins/api/src/ |
H A D | writer_adapter.cpp | 31 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 D | writer_adapter.h | 41 WriterPtr writer_; member in WriterAdapter
|
/developtools/profiler/device/plugins/ffrt_profiler/client/src/ |
H A D | ffrt_profiler_socker_client.cpp | 41 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 D | result_transporter.cpp | 32 : 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 D | network_profiler_socker_client.cpp | 40 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 D | network_profiler_handle.cpp | 42 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 D | network_profiler_manager.cpp | 345 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 D | plugin_module_api_test.cpp | 50 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 D | network_profiler_socker_client.h | 49 writer_ = nullptr; in Reset() 57 std::shared_ptr<NetworkProfilerWriter> writer_{nullptr};
|
/developtools/profiler/device/plugins/ffrt_profiler/service/src/ |
H A D | ffrt_profiler_handle.cpp | 40 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 D | ffrt_profiler_manager.cpp | 336 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 D | ffrt_profiler_socker_client.h | 53 std::shared_ptr<FfrtProfilerWriter> writer_{nullptr};
|
/developtools/profiler/device/plugins/ftrace_plugin/include/ |
H A D | result_transporter.h | 64 WriterStructPtr writer_ = nullptr; member in ResultTransporter
|
/developtools/profiler/device/plugins/ffrt_profiler/service/include/ |
H A D | ffrt_profiler_handle.h | 65 std::shared_ptr<Writer> writer_{nullptr};
|
H A D | ffrt_profiler_manager.h | 85 std::shared_ptr<Writer> writer_{nullptr};
|
/developtools/profiler/device/plugins/network_profiler/service/include/ |
H A D | network_profiler_handle.h | 64 std::shared_ptr<Writer> writer_{nullptr};
|
H A D | network_profiler_manager.h | 85 std::shared_ptr<Writer> writer_{nullptr};
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | stack_preprocess.cpp | 136 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 D | hook_manager.cpp | 661 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 D | hook_manager.h | 159 std::shared_ptr<Writer> writer_{nullptr};
|
H A D | stack_preprocess.h | 187 std::shared_ptr<Writer> writer_ = nullptr; member in StackPreprocess
|