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

Function prof_boot1

app/redis-6.2.6/deps/jemalloc/src/prof.c:2267–2289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2265}
2266
2267void
2268prof_boot1(void) {
2269 cassert(config_prof);
2270
2271 /*
2272 * opt_prof must be in its final state before any arenas are
2273 * initialized, so this function must be executed early.
2274 */
2275
2276 if (opt_prof_leak && !opt_prof) {
2277 /*
2278 * Enable opt_prof, but in such a way that profiles are never
2279 * automatically dumped.
2280 */
2281 opt_prof = true;
2282 opt_prof_gdump = false;
2283 } else if (opt_prof) {
2284 if (opt_lg_prof_interval >= 0) {
2285 prof_interval = (((uint64_t)1U) <<
2286 opt_lg_prof_interval);
2287 }
2288 }
2289}
2290
2291bool
2292prof_boot2(tsd_t *tsd) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected