MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_backtrace

Function prof_backtrace

deps/jemalloc/src/prof.c:587–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586#ifdef JEMALLOC_PROF_LIBUNWIND
587void
588prof_backtrace(prof_bt_t *bt) {
589 int nframes;
590
591 cassert(config_prof);
592 assert(bt->len == 0);
593 assert(bt->vec != NULL);
594
595 nframes = unw_backtrace(bt->vec, PROF_BT_MAX);
596 if (nframes <= 0) {
597 return;
598 }
599 bt->len = nframes;
600}
601#elif (defined(JEMALLOC_PROF_LIBGCC))
602static _Unwind_Reason_Code
603prof_unwind_init_callback(struct _Unwind_Context *context, void *arg) {

Callers 2

prof_try_logFunction · 0.70
prof_inlines_b.hFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected