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

Method FindStaticMetric

IntelPresentMon/Interprocess/source/DataStores.cpp:149–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 StaticMetricValue FrameDataStore::FindStaticMetric(PM_METRIC metric) const
150 {
151 switch (metric) {
152 case PM_METRIC_APPLICATION:
153 return statics.applicationName.c_str();
154 case PM_METRIC_PROCESS_ID:
155 return bookkeeping.processId;
156 case PM_METRIC_SESSION_START_QPC:
157 return bookkeeping.startQpc;
158 default:
159 throw util::Except<PmStatusError>(PM_STATUS_QUERY_MALFORMED,
160 "Static metric not handled by frame data store");
161 }
162 }
163
164 void PopulateTelemetryRings(TelemetryMap& telemetryData,
165 const DataStoreSizingInfo& sizing,

Callers 1

PollStaticQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected