| 251 | } |
| 252 | |
| 253 | void Profiler::Capture::writeToFile(const std::filesystem::path& path) const |
| 254 | { |
| 255 | auto json = toJsonString(); |
| 256 | std::ofstream ofs(path); |
| 257 | ofs.write(json.data(), json.size()); |
| 258 | } |
| 259 | |
| 260 | Profiler::Capture::Capture(size_t reservedEvents, size_t reservedFrames) : mReservedFrames(reservedFrames) |
| 261 | { |
no test coverage detected