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

Method CompleteDmaPacket

PresentData/GpuTrace.cpp:501–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void GpuTrace::CompleteDmaPacket(uint64_t hContext, uint32_t sequenceId, uint64_t timestamp)
502{
503 // Lookup the context. This can fail sometimes e.g. if parsing the
504 // beginning of an ETL file where we can get packet events before the
505 // context mapping.
506 auto ii = mContexts.find(hContext);
507 if (ii == mContexts.end()) {
508 return;
509 }
510 auto context = &ii->second;
511
512 // Should not see any dma packets on a HwQueue
513 DebugAssert(!context->mIsHwQueue);
514
515 // Stop tracking the work
516 CompleteWork(context, sequenceId, timestamp);
517}
518
519void GpuTrace::CompleteFrame(PresentEvent* pEvent, uint64_t timestamp)
520{

Callers 1

HandleDXGKEventMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected