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

Function HandleTerminatedProcess

PresentMon/OutputThread.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void HandleTerminatedProcess(
148 ProcessInfo* processInfo)
149{
150 auto const& args = GetCommandLineArgs();
151
152 if (processInfo->mIsTargetProcess) {
153 // Close this process' CSV.
154 CloseMultiCsv(processInfo);
155
156 // Quit if this is the last process tracked for --terminate_on_proc_exit.
157 gTargetProcessCount -= 1;
158 if (args.mTerminateOnProcExit && gTargetProcessCount == 0) {
159 ExitMainThread();
160 }
161 }
162}
163
164static void ProcessProcessEvent(
165 ProcessEvent const& processEvent)

Callers 3

ProcessProcessEventFunction · 0.85
ProcessEventsMethod · 0.85
ProcessEventsMethod · 0.85

Calls 2

CloseMultiCsvFunction · 0.85
ExitMainThreadFunction · 0.85

Tested by

no test coverage detected