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

Function dump_memory_flow

imperative/src/impl/profiler/memory_chunk.cpp:270–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268};
269
270void dump_memory_flow(std::string filename, Profiler::bundle_t result) {
271 MemoryFlowVisitor visitor;
272 visitor.process_events(result);
273 debug::write_to_file(filename.c_str(), visitor.memory_flow.to_svg().to_string());
274}
275
276} // namespace mgb::imperative::profiler

Callers

nothing calls this directly

Calls 3

process_eventsMethod · 0.80
to_svgMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected