| 100 | } |
| 101 | |
| 102 | void 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 | |
| 112 | void Profiler::end(const OperatorInfo* info) { |
| 113 | mEndTime = getTime(); |
no test coverage detected