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

Function MakeODSChannel_

IntelPresentMon/PresentMonMiddleware/LogSetup.cpp:59–75  ·  view source on GitHub ↗

make a channel that only outputs to WinDbg with OutputDebugString

Source from the content-addressed store, hash-verified

57 }
58 // make a channel that only outputs to WinDbg with OutputDebugString
59 std::shared_ptr<IChannel> MakeODSChannel_() noexcept
60 {
61 try {
62 // channel
63 auto pChannel = std::make_shared<Channel>();
64 // error resolver
65 pChannel->AttachComponent(MakeErrorCodePolicy_());
66 // configure drivers
67 // make the formatter and file strategy
68 const auto pFormatter = std::make_shared<TextFormatter>();
69 pChannel->AttachComponent(std::make_shared<MsvcDebugDriver>(pFormatter), "drv:dbg");
70 return pChannel;
71 }
72 catch (...) {
73 return {};
74 }
75 }
76 // create a channel that outputs to files in the specified directory
77 std::shared_ptr<IChannel> MakeFileChannel_(std::filesystem::path path) noexcept
78 {

Callers 1

SetupODSChannelFunction · 0.85

Calls 2

MakeErrorCodePolicy_Function · 0.85
AttachComponentMethod · 0.45

Tested by

no test coverage detected