Print the report of the profiler in a given output stream
| 220 | |
| 221 | // Print the report of the profiler in a given output stream |
| 222 | void Profiler::printReport() { |
| 223 | |
| 224 | // For each destination |
| 225 | for (uint i=0; i < mNbDestinations; i++) { |
| 226 | |
| 227 | ProfileNodeIterator* iterator = Profiler::getIterator(); |
| 228 | |
| 229 | // Recursively print the report of each node of the profiler tree |
| 230 | printRecursiveNodeReport(iterator, 0, mDestinations[i]->getOutputStream()); |
| 231 | |
| 232 | // Destroy the iterator |
| 233 | destroyIterator(iterator); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | // Add a file destination to the profiler |
| 238 | void Profiler::addFileDestination(const std::string& filePath, Format format) { |
no test coverage detected