| 245 | } |
| 246 | |
| 247 | Response<bool, bool> GrSystemMonitor::CheckRenderAlive() { |
| 248 | auto resp = Response<bool, bool>::Make(false, false); |
| 249 | auto processes = ProcessHelper::GetProcessList(false); |
| 250 | if (processes.empty()) { |
| 251 | return resp; |
| 252 | } |
| 253 | resp.ok_ = true; |
| 254 | |
| 255 | LOGI("-------------------------------------------------------------------"); |
| 256 | for (auto& p : processes) { |
| 257 | LOGI("p.exe_name: {}", p->exe_full_path_); |
| 258 | if (p->exe_full_path_.find(kGammaRayRenderName) != std::string::npos) { |
| 259 | resp.value_ = true; |
| 260 | //LOGI("Yes, find it."); |
| 261 | break; |
| 262 | } |
| 263 | } |
| 264 | return resp; |
| 265 | } |
| 266 | |
| 267 | void GrSystemMonitor::CheckServiceAlive() { |
| 268 | tc::ServiceStatus serv_status = this->service_manager_->QueryStatus(); |
nothing calls this directly
no outgoing calls
no test coverage detected