profiling trick
jduerstock opened this issue · comments
Jason Duerstock commented
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 commented
Thanks for the tip.
If you add a section to the README file with your tip I can merge the changes!
Have Fun!