| 155 | class ExecutorImpl : public Executor { |
| 156 | public: |
| 157 | explicit ExecutorImpl(const LocalExecutorParams& p, |
| 158 | std::unique_ptr<const Graph> g) |
| 159 | : immutable_state_(p, std::move(g)) { |
| 160 | Status s = ReadBoolFromEnvVar( |
| 161 | nodestats::enable_cost_model_env_name, true, &enable_cost_model_); |
| 162 | if (!s.ok()) { |
| 163 | LOG(WARNING) << "Read ENABLE_EXECUTE_COST_MODEL envrionment error. " |
| 164 | << s.error_message(); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | ~ExecutorImpl() { |
| 169 | if (cost_model_) { |
nothing calls this directly
no test coverage detected