#NEWLINE# def handle_signal( self , profiler , signum , frame ) : #NEWLINE# #INDENT# frames = self . current_frames ( ) #NEWLINE# frames [ main_thread_id ] = frame #NEWLINE# for frame_ in frames . values ( ) : #NEWLINE# #INDENT# profiler . sample ( profiler )