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

Method Start

Tests/PresentMon.cpp:433–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433void PresentMon::Start(char const* file, int line)
434{
435 if (!csvArgSet_) {
436 cmdline_ += L" --no_csv";
437 csvArgSet_ = true;
438 }
439
440 STARTUPINFO si = {};
441 si.cb = sizeof(si);
442 si.dwFlags = STARTF_USESTDHANDLES;
443 if (CreateProcess(nullptr, &cmdline_[0], nullptr, nullptr, TRUE, 0, nullptr, nullptr, &si, (PROCESS_INFORMATION*) this) == 0) {
444 AddTestFailure(file, line, "Failed to start PresentMon");
445 }
446}
447
448bool PresentMon::IsRunning(DWORD timeoutMilliseconds) const
449{

Callers 2

StartTraceSessionMethod · 0.45
StartEtwSessionMethod · 0.45

Calls 1

AddTestFailureFunction · 0.85

Tested by

no test coverage detected