================== CachedProfiler =================*/
| 610 | |
| 611 | /* ================== CachedProfiler =================*/ |
| 612 | CachedProfiler::CachedProfiler( |
| 613 | const char* path, int runs, float opr_threshold, float var_node_threshold) |
| 614 | : ProfilerImpl(runs, opr_threshold, var_node_threshold), m_path{path} { |
| 615 | if (m_path != nullptr) { // file cache |
| 616 | ProfilerCache::inst().set_impl(std::make_unique<InFilePersistentCache>(m_path)); |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | CachedProfiler::ProfilingResult CachedProfiler::profile(const Problem& problem) const { |
| 621 | auto ret = ProfilerImpl::profile(problem); |