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

Method Finish

IntelPresentMon/PresentMonService/EtwLogSession.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 file_ = file::TempFile::AdoptExisting(logFilePath);
111 }
112 file::TempFile EtwLogSession::Finish()
113 {
114 if (Empty()) {
115 throw Except<Exception>("cannot finish empty etw log session");
116 }
117 if (auto sta = ControlTraceW(hTraceSession_, traceProps_.LoggerName, &traceProps_, EVENT_TRACE_CONTROL_STOP);
118 sta != ERROR_SUCCESS) {
119 pmlog_error("Failed to stop ETL log session").hr(sta);
120 }
121 hTraceSession_ = 0;
122 return std::move(file_);
123 }
124 EtwLogSession::~EtwLogSession()
125 {
126 if (!Empty()) {

Callers 1

FinishLogSessionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected