C:\Windows\system32\cmd.exe /c python main.py Sat Jun 04 15:20:00 2011 profile 4371479 function calls (4368180 primitive calls) in 31.058 CPU seconds Ordered by: cumulative time List reduced from 377 to 30 due to restriction <30> ncalls tottime percall cumtime percall filename:lineno(function) 1 0.000 0.000 31.058 31.058 :1() 1 0.000 0.000 31.058 31.058 main.py:18(main) 1 0.680 0.680 31.023 31.023 animation.py:38(start) 50792 0.700 0.000 11.135 0.000 animation.py:243(map_pos_to_viewport_pos) 478 0.986 0.002 9.375 0.020 simulation.py:10(advance) 412881 1.909 0.000 8.828 0.000 {reduce} 107775 0.558 0.000 8.330 0.000 vector.py:34(minus) 158567 1.907 0.000 6.914 0.000 vector.py:37(biminus) 50792 0.469 0.000 6.213 0.000 car.py:76(abspos) 50792 0.534 0.000 5.609 0.000 road.py:22(abspos) 101719 2.632 0.000 4.968 0.000 vector.py:20(times) 317692 1.790 0.000 4.226 0.000 {isinstance} 101184 0.960 0.000 3.399 0.000 car.py:100(_cif_and_dx) 50809 1.286 0.000 2.579 0.000 vector.py:12(plus) 317234 1.692 0.000 2.436 0.000 abc.py:120(__instancecheck__) 50592 0.308 0.000 2.228 0.000 car.py:121(dv_to_car_in_front) 101184 0.586 0.000 2.134 0.000 road.py:31(car_in_front_of) 50592 0.291 0.000 2.052 0.000 car.py:119(dx_to_car_in_front) 50592 0.282 0.000 1.920 0.000 car.py:98(car_in_front) 319310/319276 1.574 0.000 1.631 0.000 {map} 101184 0.991 0.000 1.548 0.000 carlist.py:48(item_after) 465 0.009 0.000 1.499 0.003 simulation.py:25(make_car) 200 0.005 0.000 1.307 0.007 car.py:14(__init__) 200 0.012 0.000 1.285 0.006 car.py:81(plan_route) 200 0.084 0.000 1.256 0.006 util.py:9(AStar) 50592 0.647 0.000 1.241 0.000 car.py:36(advance) 50592 0.324 0.000 1.228 0.000 drivers.py:14(get_acceleration) 305056 1.180 0.000 1.180 0.000 {filter} 1434 1.077 0.001 1.077 0.001 {method 'blit' of 'pygame.Surface' objects} 443189/440125 0.977 0.000 0.992 0.000 {len}