MCPcopy Create free account
hub / github.com/bytedance/bolt / OperatorTraceSplitWriter

Method OperatorTraceSplitWriter

bolt/exec/OperatorTraceWriter.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124OperatorTraceSplitWriter::OperatorTraceSplitWriter(
125 Operator* traceOp,
126 std::string traceDir)
127 : traceOp_(traceOp),
128 traceDir_(std::move(traceDir)),
129 fs_(filesystems::getFileSystem(traceDir_, nullptr)),
130 splitFile_(fs_->openFileForWrite(getOpTraceSplitFilePath(traceDir_))) {
131 BOLT_CHECK_NOT_NULL(splitFile_);
132}
133
134void OperatorTraceSplitWriter::write(const exec::Split& split) const {
135 // TODO: Supports group later once we have driver id mapping in trace node.

Callers

nothing calls this directly

Calls 3

getFileSystemFunction · 0.85
getOpTraceSplitFilePathFunction · 0.85
openFileForWriteMethod · 0.45

Tested by

no test coverage detected