| 41 | std::atomic_size_t Profiler::sm_preferred_capacity; |
| 42 | |
| 43 | void Profiler::start_profile() { |
| 44 | mgb_assert(!sm_profiling); |
| 45 | sm_start_at = Timer::record_host(); |
| 46 | sm_profiling = true; |
| 47 | if (cupti::enabled()) { |
| 48 | MGB_RECORD_EVENT(profiler::CUPTITimestampEvent, cupti::clock::now()); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | void Profiler::stop_profile() { |
| 53 | mgb_assert(sm_profiling); |
no test coverage detected