| 240 | } |
| 241 | |
| 242 | void ClientRequestState::SetFrontendProfile(const TExecRequest& exec_request) { |
| 243 | // Should we defer creating and adding the child until here? probably. |
| 244 | TRuntimeProfileTree prof_tree; |
| 245 | prof_tree.nodes.emplace_back(std::move(exec_request.profile)); |
| 246 | for (auto& child : exec_request.profile_children) { |
| 247 | prof_tree.nodes.emplace_back(std::move(child)); |
| 248 | } |
| 249 | prof_tree.nodes.at(0).num_children = prof_tree.nodes.size() - 1; |
| 250 | frontend_profile_->Update(prof_tree, false); |
| 251 | } |
| 252 | |
| 253 | void ClientRequestState::AddBlacklistedExecutorAddress(const NetworkAddressPB& addr) { |
| 254 | lock_guard<mutex> l(lock_); |
no test coverage detected