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

Method EntryBuilder

IntelPresentMon/CommonUtilities/log/EntryBuilder.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35 EntryBuilder::EntryBuilder(Level lvl, const char* sourceFile, const char* sourceFunctionName, int sourceLine) noexcept
36 :
37 Entry{
38 .level_ = lvl,
39 .sourceStrings_ = Entry::StaticSourceStrings{
40 .file_ = sourceFile,
41 .functionName_ = sourceFunctionName,
42 },
43 .sourceLine_ = sourceLine,
44 .timestamp_ = std::chrono::system_clock::now(),
45 .pid_ = GetCurrentProcessId(),
46 .tid_ = GetCurrentThreadId(),
47 },
48 traceSkipDepth_{ PM_LOG_DEFAULT_TRACE_SKIP }
49 {}
50 EntryBuilder::EntryBuilder(Level lvl, std::string sourceFile, std::string, int sourceLine) noexcept
51 :
52 Entry{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected