MCPcopy Create free account
hub / github.com/catboost/catboost / BeginEvent

Method BeginEvent

library/cpp/chromium_trace/json.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78NJsonWriter::TPairContext TJsonTraceConsumer::BeginEvent(char type, const TEventOrigin& origin) {
79 return Json.BeginObject()
80 .WriteKey(TStringBuf("ph"))
81 .WriteString(TStringBuf(&type, 1))
82 .WriteKey(TStringBuf("pid"))
83 .WriteULongLong(origin.ProcessId)
84 .WriteKey(TStringBuf("tid"))
85 .WriteULongLong(origin.ThreadId);
86}
87
88void TJsonTraceConsumer::EndEvent(const TEventArgs* args) {
89 if (args) {

Callers

nothing calls this directly

Calls 4

WriteULongLongMethod · 0.45
WriteKeyMethod · 0.45
WriteStringMethod · 0.45
BeginObjectMethod · 0.45

Tested by

no test coverage detected