MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / writeToFile

Method writeToFile

Source/Falcor/Utils/Timing/Profiler.cpp:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void 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
260Profiler::Capture::Capture(size_t reservedEvents, size_t reservedFrames) : mReservedFrames(reservedFrames)
261{

Callers 1

renderOptionsMethod · 0.80

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected