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

Method record_device

imperative/src/impl/profiler.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26std::shared_ptr<CompNode::Event> Timer::record_device(CompNode device) {
27 auto event = EventPool::with_timer().alloc_shared(device);
28 event->record();
29 return event;
30}
31
32std::vector<Profiler::entry_t> Profiler::sm_records;
33Profiler::options_t Profiler::sm_profile_options;

Callers

nothing calls this directly

Calls 2

alloc_sharedMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected