Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a150bc9 commit 411d69aCopy full SHA for 411d69a
1 file changed
unit/memleak_gui.py
@@ -48,8 +48,8 @@
48
import pylab
49
import matplotlib.cbook as cbook
50
51
-print indEnd
52
-
+print '# columns are: iteration, OS memory (k), number of python objects'
+print '#'
53
for i in range(indEnd+1):
54
55
fig = pylab.figure()
@@ -60,13 +60,15 @@
60
val = cbook.report_memory(i)
61
if options.verbose:
62
if i % 10 == 0:
63
- print ("iter: %4d OS memory: %8d Python objects: %8d" %
+ #print ("iter: %4d OS memory: %8d Python objects: %8d" %
64
+ print ("%4d %8d %8d" %
65
(i, val, len(gc.get_objects())))
66
if i==indStart: start = val # wait a few cycles for memory usage to stabilize
67
68
gc.collect()
69
end = val
70
71
+print '# columns above are: iteration, OS memory (k), number of python objects'
72
print '#'
73
print '# uncollectable list:', gc.garbage
74
0 commit comments