Mercurial > lcfOS
view test/grind.py @ 337:b00219172a42
Added cool lm3s811 qemu project
author | Windel Bouwman |
---|---|
date | Thu, 20 Feb 2014 20:04:52 +0100 |
parents | e9fe6988497c |
children | 39bf68bf1891 |
line wrap: on
line source
#!/usr/bin/python import cProfile import unittest import pstats import sys import os p = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'python') sys.path.insert(0, p) if __name__ == '__main__': suite = unittest.TestLoader().discover('.') def runtests(): unittest.TextTestRunner().run(suite) #s = cProfile.run('runtests()',sort='cumtime') p = cProfile.Profile() s = p.run('runtests()') stats = pstats.Stats(p) stats.sort_stats('tottime') stats.print_stats(.1)