Changeset 7239


Ignore:
Timestamp:
Jun 22, 2009, 9:25:37 AM (15 years ago)
Author:
rwilson
Message:

Put in garbage collect call (commented out) - uncomment if memory increase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/fit_interpolate/benchmark_least_squares.py

    r6152 r7239  
    100100    Only works on nix systems.
    101101    '''
     102
     103    # GC stuff should be uncommented when debugging memory 'shift' problems,
     104    # when (if?) the amount of memory used takes a sudden leap upwards.
     105    #import gc
    102106    import string
     107
     108    #gc.collect()
     109    #print('Ran a garbage collection')
    103110    p=os.popen('ps uwp %s'%os.getpid())
    104111    lines=p.readlines()
    105     #print "lines", lines
    106112    status=p.close()
    107113    if status or len(lines)!=2 or sys.platform == 'win32':
Note: See TracChangeset for help on using the changeset viewer.