Method called when we want to start profiling a block of code.
| 188 | |
| 189 | // Method called when we want to start profiling a block of code. |
| 190 | void Profiler::startProfilingBlock(const char* name) { |
| 191 | |
| 192 | // Look for the node in the tree that corresponds to the block of |
| 193 | // code to profile |
| 194 | if (name != mCurrentNode->getName()) { |
| 195 | mCurrentNode = mCurrentNode->findSubNode(name); |
| 196 | } |
| 197 | |
| 198 | // Start profile the node |
| 199 | mCurrentNode->enterBlockOfCode(); |
| 200 | } |
| 201 | |
| 202 | // Method called at the end of the scope where the |
| 203 | // startProfilingBlock() method has been called. |
no test coverage detected