MCPcopy Create free account
hub / github.com/apache/brpc / OutputFrameId

Function OutputFrameId

src/butil/debug/stack_trace_posix.cc:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137#if defined(USE_SYMBOLIZE)
138void OutputFrameId(intptr_t frame_id, BacktraceOutputHandler* handler) {
139 // Max unsigned 64-bit number in decimal has 20 digits (18446744073709551615).
140 // Hence, 30 digits should be more than enough to represent it in decimal
141 // (including the null-terminator).
142 char buf[30] = { '\0' };
143 handler->HandleOutput("#");
144 internal::itoa_r(frame_id, buf, sizeof(buf), 10, 1);
145 handler->HandleOutput(buf);
146}
147#endif // defined(USE_SYMBOLIZE)
148
149void ProcessBacktrace(void *const *trace,

Callers 1

ProcessBacktraceFunction · 0.85

Calls 2

itoa_rFunction · 0.85
HandleOutputMethod · 0.45

Tested by

no test coverage detected