Changeset 1629
- Timestamp:
- 07/12/07 15:57:42 (1 year ago)
- Files:
-
- gaphas/branches/hw/demo_profile.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/branches/hw/demo_profile.py
r1597 r1629 85 85 global movable_item 86 86 item = movable_item 87 handles = item.handles()88 87 import time 89 88 t1 = time.time() 90 89 for i in range(20): 91 for h in handles: 92 h.x += 1 93 h.y += 1 90 item.matrix.translate(1, 1) 94 91 item.request_update() 95 92 canvas.update_matrix(item) … … 214 211 if __name__ == '__main__': 215 212 import hotshot, hotshot.stats 213 import gc 214 gc.set_debug(gc.DEBUG_COLLECTABLE) 216 215 prof = hotshot.Profile('demo-gaphas.prof') 217 216 prof.runcall(main)
