Lines Matching refs:sessionId
219 bool CheckStartSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId)
224 startRequest.set_session_id(sessionId);
235 bool CheckStopSession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId)
240 stopRequest.set_session_id(sessionId);
250 bool CheckDestroySession(std::unique_ptr<IProfilerService::Stub>& profilerStub, uint32_t& sessionId)
255 destroyRequest.set_session_id(sessionId);
305 uint32_t sessionId = CreateSession(profilerStub, config, keepSecond, outputFile);
306 if (sessionId == 0) {
312 return CheckDestroySession(profilerStub, sessionId);
315 // start keepSessionThread, in order to ensure the sessionId is valid.
317 std::thread keepSessionThread(StartThread, std::ref(profilerStub), std::ref(sessionId), std::ref(sendHeart));
322 return CheckDestroySession(profilerStub, sessionId);
325 if (!CheckStartSession(profilerStub, sessionId)) {
338 if (CheckStopSession(profilerStub, sessionId) && CheckDestroySession(profilerStub, sessionId)) {