| 71 | pass |
| 72 | |
| 73 | class T(Thread): |
| 74 | def __init__(self): |
| 75 | Thread.__init__(self) |
| 76 | def run(self): # takes about 5 seconds |
| 77 | for i in xrange(100): |
| 78 | self.test_method() |
| 79 | test_function() |
| 80 | def test_method(self): |
| 81 | sleep(random.random() / 10) |
| 82 | |
| 83 | profile_on() |
| 84 | ####################### |