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

Method GetEventData

PresentData/TraceConsumer.cpp:189–194  ·  view source on GitHub ↗

Look up metadata for this provider/event and use it to look up the property. If the metadata isn't found look it up using TDH. Then, look up each property in the metadata to obtain it's data pointer and size.

Source from the content-addressed store, hash-verified

187// If the metadata isn't found look it up using TDH. Then, look up each
188// property in the metadata to obtain it's data pointer and size.
189void EventMetadata::GetEventData(EVENT_RECORD* eventRecord, EventDataDesc* desc, uint32_t descCount, uint32_t optionalCount /*=0*/)
190{
191 [[maybe_unused]] auto foundCount = GetEventDataWithCount(eventRecord, desc, descCount);
192 assert(foundCount >= descCount - optionalCount);
193 (void)optionalCount;
194}
195
196// Some events have been evolving over time but not incrementing the version number. As an example DXGI::SwapChain::Start.
197// Use this version of GetEventData when a data param might be available based on the version of the event

Callers 8

HandleD3D9EventMethod · 0.45
HandleDXGIEventMethod · 0.45
HandleDXGKEventMethod · 0.45
HandleWin32kEventMethod · 0.45
HandleDWMEventMethod · 0.45
HandleProcessEventMethod · 0.45
VerboseTraceEventImplFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected