MCPcopy Create free account
hub / github.com/apple/foundationdb / setProfilingEnabled

Function setProfilingEnabled

flow/Platform.actor.cpp:3743–3755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3741}
3742
3743void setProfilingEnabled(int enabled) {
3744#ifdef __linux__
3745 if (profileThread && enabled && !profilingEnabled && profileRequested) {
3746 profilingEnabled = true;
3747 profileRequested = false;
3748 pthread_kill(pthread_self(), SIGPROF);
3749 } else {
3750 profilingEnabled = enabled;
3751 }
3752#else
3753 // No profiling for other platforms!
3754#endif
3755}
3756
3757void* checkThread(void* arg) {
3758#ifdef __linux__

Callers 5

dl_iterate_phdrFunction · 0.85
sleepMethod · 0.85
whenFunction · 0.85
Coro_StartWithArgFunction · 0.85
Coro_switchTo_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected