Add yappi profiling to tests/__main__.py
This commit is contained in:
parent
4438d6f42f
commit
808b9e026a
@ -2,3 +2,4 @@ coverage
|
||||
mock >= 0.7
|
||||
nose
|
||||
tox
|
||||
yappi
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
import nose
|
||||
import yappi
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
yappi.start()
|
||||
nose.main()
|
||||
finally:
|
||||
yappi.print_stats()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user