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

Method CopyFrameData

IntelPresentMon/CommonUtilities/mc/MetricsTypes.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace pmon::util::metrics {
8
9 FrameData FrameData::CopyFrameData(const std::shared_ptr<PresentEvent>& p)
10 {
11 if (p) {
12 return CopyFrameData(*p);
13 }
14 pmlog_error("Tried to copy frame data from empty PresentEvent ptr");
15 return {};
16 }
17
18 FrameData FrameData::CopyFrameData(const PresentEvent& p)
19 {

Callers

nothing calls this directly

Calls 3

AssignMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected