leekscript icon indicating copy to clipboard operation
leekscript copied to clipboard

Leekscript profiler

Open Karang opened this issue 2 years ago • 0 comments

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

image

Usage:

./flamegraph.pl profile_patrick.txt > flamegraph.svg

Karang avatar Jun 22 '22 19:06 Karang