Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leekscript profiler #5

Open
wants to merge 319 commits into
base: master
Choose a base branch
from
Open

Conversation

Karang
Copy link
Contributor

@Karang Karang commented Jun 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants