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

Function prof_thread_name_get

deps/jemalloc/src/prof.c:2782–2791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2780}
2781
2782const char *
2783prof_thread_name_get(tsd_t *tsd) {
2784 prof_tdata_t *tdata;
2785
2786 tdata = prof_tdata_get(tsd, true);
2787 if (tdata == NULL) {
2788 return "";
2789 }
2790 return (tdata->thread_name != NULL ? tdata->thread_name : "");
2791}
2792
2793static char *
2794prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name) {

Callers 2

thread_prof_name_ctlFunction · 0.70
prof_try_logFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected