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

Function MakeHeader

IntelPresentMon/SampleClient/PacedPlayback.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace rn = std::ranges;
20
21std::vector<std::string> MakeHeader(
22 std::span<const PM_QUERY_ELEMENT> qels,
23 const pmapi::intro::Root& intro)
24{
25 std::vector<std::string> headerColumns{ "poll-time"s };
26 for (auto& qel : qels) {
27 headerColumns.push_back(std::format("{}({})",
28 intro.FindMetric(qel.metric).Introspect().GetSymbol(),
29 intro.FindEnum(PM_ENUM_STAT).FindKey((int)qel.stat).GetShortName()
30 ));
31 }
32 return headerColumns;
33}
34
35void WriteRunToCsv(
36 const std::string& csvFilePath,

Callers 1

PacedPlaybackTestFunction · 0.85

Calls 7

push_backMethod · 0.80
GetSymbolMethod · 0.80
IntrospectMethod · 0.80
FindMetricMethod · 0.80
GetShortNameMethod · 0.80
FindKeyMethod · 0.80
FindEnumMethod · 0.80

Tested by

no test coverage detected