MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ProcessRecordingToggle

Function ProcessRecordingToggle

PresentMon/OutputThread.cpp:362–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362static void ProcessRecordingToggle(
363 bool* isRecording)
364{
365 auto const& args = GetCommandLineArgs();
366
367 if (*isRecording) {
368 *isRecording = false;
369
370 IncrementRecordingCount();
371
372 if (args.mMultiCsv) {
373 for (auto& pair : gProcesses) {
374 CloseMultiCsv(&pair.second);
375 }
376 } else {
377 CloseGlobalCsv();
378 }
379 } else {
380 *isRecording = true;
381 }
382}
383
384static FrameMetrics1 ToFrameMetrics1(pmon::util::metrics::FrameMetrics const& m)
385{

Callers 1

ProcessEventsFunction · 0.85

Calls 3

IncrementRecordingCountFunction · 0.85
CloseMultiCsvFunction · 0.85
CloseGlobalCsvFunction · 0.85

Tested by

no test coverage detected