| 5145 | } |
| 5146 | |
| 5147 | void Highs::initializeProfiling(HighsProfiling* profiling) { |
| 5148 | if (!profiling) return; |
| 5149 | assert(!this->profiling_); |
| 5150 | if (this->profiling_) return; |
| 5151 | // Only initialize profiling if this->profiling_ is nullptr |
| 5152 | const bool sub_solver = this->options_.log_dev_level > 0; // true; // |
| 5153 | // Cannot perform MIP profiling without sub-solver profiling |
| 5154 | const bool mip = sub_solver && kHighsAnalysisLevelMipTime & |
| 5155 | this->options_.highs_analysis_level; |
| 5156 | profiling->initialize(this->timer_, sub_solver, mip); |
| 5157 | profiling->model_name_ = this->model_.lp_.model_name_; |
| 5158 | this->setProfiling(profiling); |
| 5159 | } |
| 5160 | |
| 5161 | void Highs::resetProfiling() { |
| 5162 | if (!this->profiling_) return; |
no test coverage detected