Lines Matching refs:sessionId
222 bool CheckStartSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckStartSession() argument
227 startRequest.set_session_id(sessionId); in CheckStartSession()
238 bool CheckStopSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckStopSession() argument
243 stopRequest.set_session_id(sessionId); in CheckStopSession()
253 bool CheckDestroySession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId) in CheckDestroySession() argument
258 destroyRequest.set_session_id(sessionId); in CheckDestroySession()
304 uint32_t sessionId = CreateSession(profilerStub, config, keepSecond, outputFile); in DoCapture() local
305 if (sessionId == 0) { 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()