Changeset 1778 for gaphas/trunk/demo_profile.py
- Timestamp:
- 07/27/07 14:05:25 (1 year ago)
- Files:
-
- gaphas/trunk/demo_profile.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/demo_profile.py
r1752 r1778 172 172 bb=Box() 173 173 print 'box', bb 174 x = int(i % n) * 20175 y = int(i / n) * 20174 x = int(i % n) * 40 175 y = int(i / n) * 40 176 176 bb.matrix.translate(20 + x, y) 177 177 bb.matrix.rotate(math.pi/4.0 * i / 10.0) 178 bb.width = bb.height = 20 178 179 c.add(bb, parent=b) 180 bb1 = Box() 181 bb1.matrix.translate(5, 5) 182 c.add(bb1, parent=bb) 179 183 180 184 tool = view.tool._tools[1] … … 239 243 cProfile.run('main()', 'demo-gaphas.prof') 240 244 p = pstats.Stats('demo-gaphas.prof') 241 p.strip_dirs().sort_stats('time').print_stats( 20)245 p.strip_dirs().sort_stats('time').print_stats(40) 242 246 except ImportError, ex: 243 247 import hotshot, hotshot.stats
