leekscript
leekscript copied to clipboard
Leekscript profiler
Generate a trace that can be used with https://github.com/brendangregg/FlameGraph to visualize which functions takes the most operations.
Trace example for basic.leek:
runIA;count 115
runIA;debug 2300
runIA;getNearestEnemy 575
runIA;getWeapons 3450
runIA;moveToward 11500
runIA;setWeapon 345
runIA;useWeapon 69000
Usage:
./flamegraph.pl profile_patrick.txt > flamegraph.svg