def _run_parallel_process_with_profiling ( self , start_path , stop_path , queue , filename ) : runctx ( 'Engine._run_parallel_process(self,  start_path, stop_path, queue)' , globals ( ) , locals ( ) , filename )
how to profile a background python process
wrapper for usage of profiling
def _run_parallel_process_with_profiling(self, start_path, stop_path, queue, filename):
        """
        wrapper for usage of profiling
        """
        runctx('Engine._run_parallel_process(self,  start_path, stop_path, queue)', globals(), locals(), filename)