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

Method WriteFlow

library/cpp/chromium_trace/yson.cpp:138–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void TYsonTraceConsumer::WriteFlow(const TEventFlow& flow) {
139 if (flow.Type == EFlowType::None) {
140 return;
141 }
142
143 if (flow.Type == EFlowType::Producer || flow.Type == EFlowType::Step) {
144 Yson.OnKeyedItem(TStringBuf("flow_out"));
145 Yson.OnBooleanScalar(true);
146 }
147
148 if (flow.Type == EFlowType::Consumer || flow.Type == EFlowType::Step) {
149 Yson.OnKeyedItem(TStringBuf("flow_in"));
150 Yson.OnBooleanScalar(true);
151 }
152
153 TString bindId = TStringBuilder() << JobId << "::" << flow.BindId;
154 Yson.OnKeyedItem(TStringBuf("bind_id"));
155 Yson.OnStringScalar(bindId);
156}

Callers

nothing calls this directly

Calls 4

TStringBuilderClass · 0.50
OnKeyedItemMethod · 0.45
OnBooleanScalarMethod · 0.45
OnStringScalarMethod · 0.45

Tested by

no test coverage detected