dmsc / emu2

Simple x86 and DOS emulator for the Linux terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

profiling trick

jduerstock opened this issue · comments

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.

commented

Thanks for the tip.

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

Have Fun!