mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
b9f1084b54
commit
bb16a23be8
@ -346,7 +346,7 @@ def test_for_mem_leak():
|
|||||||
scanner.scan()
|
scanner.scan()
|
||||||
for i in xrange(3): gc.collect()
|
for i in xrange(3): gc.collect()
|
||||||
usedmem = memory(startmem)
|
usedmem = memory(startmem)
|
||||||
prints('Memory used in %d repetitions of scan(): %.10f KB'%(reps,
|
prints('Memory used in %d repetitions of scan(): %.5f KB'%(reps,
|
||||||
1024*usedmem))
|
1024*usedmem))
|
||||||
prints('Differences in python object counts:')
|
prints('Differences in python object counts:')
|
||||||
diff_hists(h1, gc_histogram())
|
diff_hists(h1, gc_histogram())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user