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

Function OutputPointer

src/butil/debug/stack_trace_posix.cc:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125};
126
127void OutputPointer(void* pointer, BacktraceOutputHandler* handler) {
128 // This should be more than enough to store a 64-bit number in hex:
129 // 16 hex digits + 1 for null-terminator.
130 char buf[17] = { '\0' };
131 handler->HandleOutput("0x");
132 internal::itoa_r(reinterpret_cast<intptr_t>(pointer),
133 buf, sizeof(buf), 16, 12);
134 handler->HandleOutput(buf);
135}
136
137#if defined(USE_SYMBOLIZE)
138void OutputFrameId(intptr_t frame_id, BacktraceOutputHandler* handler) {

Callers 1

ProcessBacktraceFunction · 0.85

Calls 2

itoa_rFunction · 0.85
HandleOutputMethod · 0.45

Tested by

no test coverage detected