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

Method BeginEvent

library/cpp/chromium_trace/yson.cpp:103–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void TYsonTraceConsumer::BeginEvent(char type, const TEventOrigin& origin) {
104 Yson.OnBeginMap();
105
106 if (JobId) {
107 Yson.OnKeyedItem(TStringBuf("host"));
108 Yson.OnStringScalar(HostName());
109 Yson.OnKeyedItem(TStringBuf("job_id"));
110 Yson.OnStringScalar(JobId);
111 }
112
113 Yson.OnKeyedItem(TStringBuf("ph"));
114 Yson.OnStringScalar(TStringBuf(&type, 1));
115 Yson.OnKeyedItem(TStringBuf("pid"));
116 Yson.OnUint64Scalar(origin.ProcessId);
117 Yson.OnKeyedItem(TStringBuf("tid"));
118 Yson.OnUint64Scalar(origin.ThreadId);
119}
120
121void TYsonTraceConsumer::EndEvent(const TEventArgs* args) {
122 if (args) {

Callers

nothing calls this directly

Calls 4

OnBeginMapMethod · 0.45
OnKeyedItemMethod · 0.45
OnStringScalarMethod · 0.45
OnUint64ScalarMethod · 0.45

Tested by

no test coverage detected