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

Function TerminateExistingTest

Tests/CommandLineTests.cpp:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void TerminateExistingTest(wchar_t const* sessionName)
32{
33 PresentMon pm;
34 pm.Add(L"--stop_existing_session --no_csv");
35 if (sessionName != nullptr) {
36 pm.Add(L" --session_name");
37 pm.Add(sessionName);
38 }
39 pm.PMSTART();
40 EXPECT_TRUE(pm.IsRunning(1000));
41
42 PresentMon pm2;
43 pm2.Add(L"--terminate_existing_session");
44 if (sessionName != nullptr) {
45 pm2.Add(L" --session_name");
46 pm2.Add(sessionName);
47 }
48 pm2.PMSTART();
49 pm2.PMEXITED(1000);
50 pm.PMEXITED(1000);
51}
52
53template<typename T>
54void QpcTimeTest(bool qpc)

Callers 1

TESTFunction · 0.85

Calls 2

AddMethod · 0.80
IsRunningMethod · 0.45

Tested by

no test coverage detected