Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable run: adjust gc debug prints

we're not on Python 3

Changeset b5fbaedfb641

Parent d5a9ae16b56b

by Adrian Buehlmann

Changes to one file · Browse files at b5fbaedfb641 Showing diff from parent d5a9ae16b56b Diff from another changeset...

 
392
393
394
395
 
396
397
398
399
 
400
401
402
403
 
404
405
406
407
 
408
409
410
 
392
393
394
 
395
396
397
398
 
399
400
401
402
 
403
404
405
406
 
407
408
409
410
@@ -392,19 +392,19 @@
  #return self.debug_cycles()   l0, l1, l2 = gc.get_count()   if self.debug: - print ('gc_check called:', l0, l1, l2) + print 'gc_check called:', l0, l1, l2   if l0 > self.threshold[0]:   num = gc.collect(0)   if self.debug: - print ('collecting gen 0, found:', num, 'unreachable') + print 'collecting gen 0, found:', num, 'unreachable'   if l1 > self.threshold[1]:   num = gc.collect(1)   if self.debug: - print ('collecting gen 1, found:', num, 'unreachable') + print 'collecting gen 1, found:', num, 'unreachable'   if l2 > self.threshold[2]:   num = gc.collect(2)   if self.debug: - print ('collecting gen 2, found:', num, 'unreachable') + print 'collecting gen 2, found:', num, 'unreachable'     def debug_cycles(self):   gc.collect()