| 2265 | } |
| 2266 | |
| 2267 | void |
| 2268 | prof_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 | |
| 2291 | bool |
| 2292 | prof_boot2(tsd_t *tsd) { |
no outgoing calls
no test coverage detected