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

Method WriteFlow

library/cpp/chromium_trace/json.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void TJsonTraceConsumer::WriteFlow(const TEventFlow& flow) {
121 if (flow.Type == EFlowType::None) {
122 return;
123 }
124
125 if (flow.Type == EFlowType::Producer || flow.Type == EFlowType::Step) {
126 Json.WriteKey(TStringBuf("flow_out")).WriteBool(true);
127 }
128
129 if (flow.Type == EFlowType::Consumer || flow.Type == EFlowType::Step) {
130 Json.WriteKey(TStringBuf("flow_in")).WriteBool(true);
131 }
132
133 Json.WriteKey(TStringBuf("bind_id")).WriteULongLong(flow.BindId);
134}

Callers

nothing calls this directly

Calls 3

WriteBoolMethod · 0.45
WriteKeyMethod · 0.45
WriteULongLongMethod · 0.45

Tested by

no test coverage detected