MCPcopy Create free account
hub / github.com/alibaba/MNN / start

Method start

tools/cpp/Profiler.cpp:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void Profiler::start(const OperatorInfo* info) {
103 mStartTime = getTime();
104 mTotalMFlops += info->flops();
105 auto& typed = getTypedRecord(info);
106 typed.calledTimes++;
107 typed.flops += info->flops();
108 auto& named = getNamedRecord(info);
109 named.flops += info->flops();
110}
111
112void Profiler::end(const OperatorInfo* info) {
113 mEndTime = getTime();

Callers 7

mainFunction · 0.45
onPreviewFrameMethod · 0.45
onCreateMethod · 0.45
mainFunction · 0.45
str_to_idsMethod · 0.45
str_to_idsMethod · 0.45
str_to_idsMethod · 0.45

Calls 2

getTimeFunction · 0.85
flopsMethod · 0.45

Tested by

no test coverage detected