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

Method StartPacket

PresentData/GpuTrace.cpp:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void GpuTrace::StartPacket(PacketTrace* packetTrace, uint64_t timestamp) const
230{
231 packetTrace->mRunningPacketCount += 1;
232 if (packetTrace->mRunningPacketCount == 1) {
233 packetTrace->mRunningPacketStartTime = timestamp;
234 if (packetTrace->mFirstPacketTime == 0) {
235 packetTrace->mFirstPacketTime = timestamp;
236
237 if (IsVerboseTraceEnabled()) {
238 wprintf(L" GPU: pid=%u frame's first work\n", LookupPacketTraceProcessId(packetTrace));
239 }
240 }
241 }
242}
243
244void GpuTrace::CompletePacket(PacketTrace* packetTrace, uint64_t timestamp) const
245{

Callers

nothing calls this directly

Calls 1

IsVerboseTraceEnabledFunction · 0.85

Tested by

no test coverage detected