def install_memory_dumper(dump_signal=signal.SIGPROF):
 signal.signal(dump_signal, dump_memory)

def install_memory_dumper ( dump_signal = signal . SIGPROF ) : signal . signal ( dump_signal , dump_memory )
install a signal handler on signal to dump memory stats for the current process .