MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / getEventString

Method getEventString

src/common/aftermath.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 const static std::string NotFoundMarkerString = "ERROR: could not resolve marker";
56
57 std::pair<bool, std::reference_wrapper<const std::string>> AftermathMarkerTracker::getEventString(size_t hash)
58 {
59 auto const& found = m_EventStrings.find(hash);
60 if (found != m_EventStrings.end())
61 {
62 return std::make_pair<bool, std::reference_wrapper<const std::string>>(true, found->second);
63 }
64 else
65 {
66 // could technically return a string literal according to the spec, but compiler complains, so using static
67 return std::make_pair(false, NotFoundMarkerString);
68 }
69 }
70
71 AftermathCrashDumpHelper::AftermathCrashDumpHelper():
72 m_MarkerTrackers{},

Callers 1

ResolveMarkerMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected