Method called at the end of the scope where the startProfilingBlock() method has been called.
| 202 | // Method called at the end of the scope where the |
| 203 | // startProfilingBlock() method has been called. |
| 204 | void Profiler::stopProfilingBlock() { |
| 205 | |
| 206 | // Go to the parent node unless if the current block |
| 207 | // of code is recursing |
| 208 | if (mCurrentNode->exitBlockOfCode()) { |
| 209 | mCurrentNode = mCurrentNode->getParentNode(); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | // Reset the timing data of the profiler (but not the profiler tree structure) |
| 214 | void Profiler::reset() { |
no test coverage detected