Called when we enter the block of code corresponding to this profile node
| 72 | |
| 73 | // Called when we enter the block of code corresponding to this profile node |
| 74 | void ProfileNode::enterBlockOfCode() { |
| 75 | mNbTotalCalls++; |
| 76 | |
| 77 | // If the current code is not called recursively |
| 78 | if (mRecursionCounter == 0) { |
| 79 | |
| 80 | // Get the current system time to initialize the starting time of |
| 81 | // the profiling of the current block of code |
| 82 | mStartingTime = clock::now(); |
| 83 | } |
| 84 | |
| 85 | mRecursionCounter++; |
| 86 | } |
| 87 | |
| 88 | // Called when we exit the block of code corresponding to this profile node |
| 89 | bool ProfileNode::exitBlockOfCode() { |
no outgoing calls
no test coverage detected