annotate python/grind.py @ 271:cf7d5fb7d9c8

Reorganization
author Windel Bouwman
date Tue, 20 Aug 2013 18:56:02 +0200
parents 444b9df2ed99
children
rev   line source
245
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
1
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
2 import cProfile
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
3 import unittest
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
4 import pstats
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
5
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
6 if __name__ == '__main__':
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
7 suite = unittest.TestLoader().discover('.')
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
8 def runtests():
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
9 unittest.TextTestRunner().run(suite)
261
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
10 #s = cProfile.run('runtests()',sort='cumtime')
444b9df2ed99 try to split up code generation
Windel Bouwman
parents: 245
diff changeset
11 s = cProfile.run('runtests()',sort='tottime')
245
66912720d712 Added grinder
Windel Bouwman
parents:
diff changeset
12