Add a file destination to the profiler
| 236 | |
| 237 | // Add a file destination to the profiler |
| 238 | void Profiler::addFileDestination(const std::string& filePath, Format format) { |
| 239 | |
| 240 | if (mNbAllocatedDestinations == mNbDestinations) { |
| 241 | allocatedDestinations(mNbAllocatedDestinations * 2); |
| 242 | } |
| 243 | |
| 244 | FileDestination* destination = new FileDestination(filePath, format); |
| 245 | mDestinations[mNbDestinations] = destination; |
| 246 | |
| 247 | mNbDestinations++; |
| 248 | } |
| 249 | |
| 250 | // Allocate memory for the destinations |
| 251 | void Profiler::allocatedDestinations(uint nbDestinationsToAllocate) { |