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

profiling trick #1

Open
jduerstock opened this issue Dec 16, 2019 · 1 comment
Open

profiling trick #1

jduerstock opened this issue Dec 16, 2019 · 1 comment

Comments

@jduerstock
Copy link

I'm not sure where to include this in your package (maybe in the README?), but I've found this handy:

EMU2_DEBUG="cpu" emu2 whatever.exe
cut -b 129- whatever.exe-cpu.0.log | sort | uniq -c > whatever.exe.profile.0

This shows all of the instructions used in the given round of execution, as well as how many times each instruction was executed.

Regardless of what you decide, thank you for the awesome program.

@dmsc
Copy link
Owner

dmsc commented Dec 17, 2019

Thanks for the tip.

If you add a section to the README file with your tip I can merge the changes!

Have Fun!

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

No branches or pull requests

2 participants