Lines Matching refs:profilerStub
175 auto profilerStub = GetProfilerServiceStub(); in GetCapabilities() local
176 if (profilerStub == nullptr) { in GetCapabilities()
185 grpc::Status status = profilerStub->GetCapabilities(&capContext, capRequest, &capResponse); in GetCapabilities()
202 uint32_t CreateSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, const std::string& co… in CreateSession() argument
213 …grpc::Status status = profilerStub->CreateSession(&createSessionContext, *request, &createResponse… in CreateSession()
222 bool CheckStartSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckStartSession() argument
229 grpc::Status status = profilerStub->StartSession(&startContext, startRequest, &startResponse); in CheckStartSession()
238 bool CheckStopSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckStopSession() argument
244 grpc::Status status = profilerStub->StopSession(&stopContext, stopRequest, &stopResponse); in CheckStopSession()
253 bool CheckDestroySession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckDestroySession() argument
259 …grpc::Status status = profilerStub->DestroySession(&destroyContext, destroyRequest, &destroyRespon… in CheckDestroySession()
268 void StartThread(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& id, std::atomic<b… in StartThread() argument
277 profilerStub->KeepSession(&keepContext, keepRequest, &keepResponse); in StartThread()
295 auto profilerStub = GetProfilerServiceStub(); in DoCapture() local
296 if (profilerStub == nullptr) { in DoCapture()
304 uint32_t sessionId = CreateSession(profilerStub, config, keepSecond, outputFile); in DoCapture()
311 return CheckDestroySession(profilerStub, sessionId); in DoCapture()
316 …std::thread keepSessionThread(StartThread, std::ref(profilerStub), std::ref(sessionId), std::ref(s… in DoCapture()
321 return CheckDestroySession(profilerStub, sessionId); in DoCapture()
324 if (!CheckStartSession(profilerStub, sessionId)) { in DoCapture()
336 if (CheckStopSession(profilerStub, sessionId) && CheckDestroySession(profilerStub, sessionId)) { in DoCapture()
369 auto profilerStub = GetProfilerServiceStub(); in CheckGrpcMsgSend() local
370 if (profilerStub == nullptr) { in CheckGrpcMsgSend()
380 grpc::Status status = profilerStub->GetCapabilities(&context, request, &response); in CheckGrpcMsgSend()