| 585 | |
| 586 | #ifdef JEMALLOC_PROF_LIBUNWIND |
| 587 | void |
| 588 | prof_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)) |
| 602 | static _Unwind_Reason_Code |
| 603 | prof_unwind_init_callback(struct _Unwind_Context *context, void *arg) { |
no outgoing calls
no test coverage detected