def dump_tracemalloc():
 gc.collect()
 snapshot = tracemalloc.take_snapshot()
 output_file = (PROFILING_OUTPUT_FMT % get_filename_fmt())
 with open(output_file, 'wb') as fp:
  cPickle.dump(snapshot, fp, 2)
 snapshot = None

def dump_tracemalloc ( ) : gc . collect ( ) snapshot = tracemalloc . take_snapshot ( ) output_file = ( PROFILING_OUTPUT_FMT % get_filename_fmt ( ) ) with open ( output_file , 'wb' ) as fp : cPickle . dump ( snapshot , fp , 2 ) snapshot = None
dumps memory usage information to file .