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

Function initProfiling

flow/Net2.actor.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87sigset_t sigprof_set;
88
89void initProfiling() {
90 net2backtraces = new volatile void*[net2backtraces_max];
91 other_backtraces = new volatile void*[net2backtraces_max];
92
93 // According to folk wisdom, calling this once before setting up the signal handler makes
94 // it async signal safe in practice :-/
95 backtrace(const_cast<void**>(other_backtraces), net2backtraces_max);
96
97 sigemptyset(&sigprof_set);
98 sigaddset(&sigprof_set, SIGPROF);
99}
100#endif
101
102DESCR struct SlowTask {

Callers 1

setupRunLoopProfilerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected