MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prof_dump_ctl

Function prof_dump_ctl

app/redis-6.2.6/deps/jemalloc/src/ctl.c:2561–2582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2559}
2560
2561static int
2562prof_dump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
2563 size_t *oldlenp, void *newp, size_t newlen) {
2564 int ret;
2565 const char *filename = NULL;
2566
2567 if (!config_prof) {
2568 return ENOENT;
2569 }
2570
2571 WRITEONLY();
2572 WRITE(filename, const char *);
2573
2574 if (prof_mdump(tsd, filename)) {
2575 ret = EFAULT;
2576 goto label_return;
2577 }
2578
2579 ret = 0;
2580label_return:
2581 return ret;
2582}
2583
2584static int
2585prof_gdump_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,

Callers

nothing calls this directly

Calls 1

prof_mdumpFunction · 0.85

Tested by

no test coverage detected