MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / start_profile

Method start_profile

imperative/src/impl/profiler.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41std::atomic_size_t Profiler::sm_preferred_capacity;
42
43void 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
52void Profiler::stop_profile() {
53 mgb_assert(sm_profiling);

Callers 1

init_tensorFunction · 0.45

Calls 1

enabledFunction · 0.70

Tested by

no test coverage detected