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

Method CopyAddressTo

src/butil/debug/stack_trace.cc:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31size_t StackTrace::CopyAddressTo(void** buffer, size_t max_nframes) const {
32 size_t nframes = std::min(count_, max_nframes);
33 memcpy(buffer, trace_, nframes * sizeof(void*));
34 return nframes;
35}
36
37std::string StackTrace::ToString() const {
38 std::string str;

Callers 2

CheckDebugOutputToStreamFunction · 0.80
submit_contentionFunction · 0.80

Calls

no outgoing calls

Tested by 1

CheckDebugOutputToStreamFunction · 0.64