contrib/perf.py
changeset 51587 a6bdd2e6f7cb
parent 51586 90ef3e042e10
child 51588 ecf4b959fa74
equal deleted inserted replaced
51586:90ef3e042e10 51587:a6bdd2e6f7cb
   579         else:
   579         else:
   580             prof = NOOPCTX
   580             prof = NOOPCTX
   581         if setup is not None:
   581         if setup is not None:
   582             setup()
   582             setup()
   583         with context():
   583         with context():
       
   584             gc.collect()
   584             with prof:
   585             with prof:
   585                 with timeone() as item:
   586                 with timeone() as item:
   586                     r = func()
   587                     r = func()
   587         count += 1
   588         count += 1
   588         results.append(item[0])
   589         results.append(item[0])