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

Method AsNameMap

IntelPresentMon/Core/source/win/ProcessMapBuilder.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 ProcessMapBuilder::NameMap ProcessMapBuilder::AsNameMap(bool lowercase) const
77 {
78 NameMap nameMap;
79 for (const auto& e : map) {
80 if (lowercase) {
81 nameMap.emplace(std::make_pair(
82 e.second.name
83 | vi::transform([](auto c){return(wchar_t)std::towlower(c);})
84 | rn::to<std::basic_string>(),
85 e.second
86 ));
87 }
88 else {
89 nameMap.emplace(std::make_pair(e.second.name, e.second));
90 }
91 }
92 return nameMap;
93 }
94
95 std::wstring ProcessMapBuilder::ToString() const
96 {

Callers 2

WinMainFunction · 0.45
RunPlaybackFrameQueryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected