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

Method GetTraceEventInfoString

PresentData/TraceLogging.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::optional<std::wstring> TraceLoggingContext::GetTraceEventInfoString(unsigned offset) const {
96 if (mTraceEventInfoBuffer.empty()) {
97 pmlog_warn("mTraceEventInfoBuffer is empty");
98 return std::nullopt;
99 }
100 return std::wstring(reinterpret_cast<const wchar_t*>(mTraceEventInfoBuffer.data() + offset));
101}
102
103std::optional<std::wstring> TraceLoggingContext::GetEventName()
104{

Callers 1

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected