ZEsarUX beta 5.1

Emulator and emulator development specific topics
User avatar
marste
Posts: 97
Joined: Sun Aug 10, 2014 8:58 pm
Location: Italy
Contact:

Re: ZEsarUX beta 5.1

Post by marste » Sat Oct 21, 2017 8:10 pm

An old request but that I hope to see realized sooner or later (or I'll try myself when I'll complete all debugging and enhancements setup): is possible to have a flag to write a profile dump file?

To explain better:

It would be really useful to understand which part of the program is executed the most in order to optimize it the most. I think this is quite general.

A simple counter of number of instruction fetched at instruction level would be enough. A more elaborate way would be to add (not substitute) also the T-States spent, but this is really not so important since if you look well it's enough clear, even if there are instruction with T-States that depends on operands.

It can be a simple array of 64K long integers, initialized to 0 at the beginning, with cells incremented during instruction fetch, and simply written to a text file at the program exit.

Cesar, what do you think about it?

User avatar
chernandezba
Posts: 156
Joined: Tue Mar 11, 2014 3:30 pm

Re: ZEsarUX beta 5.1

Post by chernandezba » Sun Oct 22, 2017 11:18 am

marste wrote:
Sat Oct 21, 2017 8:10 pm
An old request but that I hope to see realized sooner or later (or I'll try myself when I'll complete all debugging and enhancements setup): is possible to have a flag to write a profile dump file?

Try Cpu transaction log (on debug menu) ;)
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://sourceforge.net/projects/zesarux/

User avatar
chernandezba
Posts: 156
Joined: Tue Mar 11, 2014 3:30 pm

Re: ZEsarUX beta 5.1

Post by chernandezba » Sun Oct 22, 2017 11:18 am

marste wrote:
Sat Oct 21, 2017 7:56 pm
The attachment is just to give you an idea of my use of trace and why I need a clean one.
This file is obtained with hexdump formatting and then imported into libreoffice.
Sorry I don’t understand what is this trace file about
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://sourceforge.net/projects/zesarux/

User avatar
marste
Posts: 97
Joined: Sun Aug 10, 2014 8:58 pm
Location: Italy
Contact:

Re: ZEsarUX beta 5.1

Post by marste » Sun Oct 22, 2017 4:16 pm

chernandezba wrote:
Sun Oct 22, 2017 11:18 am
Try Cpu transaction log (on debug menu) ;)
I already did, time ago, but the result was a file of many gigabystes even for a very small computation, and it has to be post-processed to arrive to the identification of the number of execution of each instruction!...

Anyway it is surely a good candidate place for the change! :)

User avatar
marste
Posts: 97
Joined: Sun Aug 10, 2014 8:58 pm
Location: Italy
Contact:

Re: ZEsarUX beta 5.1

Post by marste » Sun Oct 22, 2017 4:17 pm

chernandezba wrote:
Sun Oct 22, 2017 11:18 am
Sorry I don’t understand what is this trace file about
The trace on port $35 / $53 ! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests