parameters: (statement, globals, locals, filename=None, sort=-1)
docstring: Run statement under profiler, supplying your own globals and locals,
      optionally saving results in filename.
  
      statement and filename have the same semantics as profile.run
docstring_summary: Run statement under profiler, supplying your own globals and locals,
      optionally saving results in filename.
docstring_tokens: Run statement under profiler supplying your own globals and locals optionally saving results in filename .
function: def runctx(statement, globals, locals, filename=None, sort=-1):
      """Run statement under profiler, supplying your own globals and locals,
      optionally saving results in filename.
  
      statement and filename have the same semantics as profile.run
      """
      prof = Profile()
      try:
          prof = prof.runctx(statement, globals, locals)
      except SystemExit:
          pass
  
      if filename is not None:
          prof.dump_stats(filename)
      else:
          return prof.print_stats(sort)
function_tokens: def runctx ( statement , globals , locals , filename = None , sort = - 1 ) : prof = Profile ( ) try : prof = prof . runctx ( statement , globals , locals ) except SystemExit : pass if filename is not None : prof . dump_stats ( filename ) else : return prof . print_stats ( sort )