source: branches/numpy_misc/tools/memlog/test.py @ 7244

Last change on this file since 7244 was 6696, checked in by rwilson, 16 years ago

Created a tool to monitor a processes' memory usage.

File size: 281 bytes
Line 
1# test program - does nothing, but lasts 5 seconds.
2
3import time
4
5LOOPS=20
6
7result = []
8for i in range(LOOPS):
9    x = '*'*1000
10    y = x*1000
11    z = y*100
12    result.append(z)
13    time.sleep(1)
14
15for i in range(LOOPS):
16    result.pop()
17    time.sleep(1)
18
19del result
20time.sleep(1)
Note: See TracBrowser for help on using the repository browser.