MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / FormatLineOfStackFrame

Function FormatLineOfStackFrame

oneflow/core/common/error_util.cpp:86–94  ·  view source on GitHub ↗

line info in stack frame

Source from the content-addressed store, hash-verified

84
85// line info in stack frame
86std::string FormatLineOfStackFrame(const int64_t& line) {
87 std::stringstream ss;
88 if (line >= 0) {
89 ss << "line " << line << ",";
90 } else {
91 ss << "line <unknown>,";
92 }
93 return ss.str();
94}
95
96// function info in stack frame
97std::string FormatFunctionOfStackFrame(const std::string& function) {

Callers 1

FormatErrorStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected