Performance Profiler - A first attempt

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |

By Manuel

Ascended (16637)

Manuel's picture

23-03-2020, 17:16

You can just use the installer as published on https://openmsx.dev/ e.g. https://openmsx.dev/builds/windows/x64/
That's a full installer, no need to do any manual copying. Only copy your own custom Tcl files.

By salutte

Resident (58)

salutte's picture

02-04-2020, 23:08

What a Rabbit's hole...

The renewed profiler should be pretty much functional, but the GUI is growing an order of magnitude larger. I'm learning a lot of TCL, but now that the project is so big I'm spending too much time debugging.

It is possible to know at which line/file do errors occurr, specially on boot? It would speed up my current workflow quite a bit.

By Manuel

Ascended (16637)

Manuel's picture

02-04-2020, 23:27

Try set $errorInfo

By salutte

Resident (58)

salutte's picture

03-04-2020, 07:16

Yup, the problem was that the error happened during boot, and OpenMSX launch aborted, thus I had no access to the console. But loading the profiler scrip within a catch , and inspecting $errorInfo afterwards, solved the issue.

Thanks!

By salutte

Resident (58)

salutte's picture

10-04-2020, 11:50

This is the current development version.

Function calls are auto-detected in realtime. The name shown is the call address + a hash, so that functions in different banks that share the call address can be differentiated.

There is a limited window manager with support for buttons, toggle buttons, scroll bars, minimization, etc...
The control buttons are toggable, but not working yet.

While the profiler main functionality is mostly finished, a lot of work is still missing in the interface: renaming function calls, add/remove break points, undock windows so that you can visualize multiple windows, list a number of previous function call logs, so that you choose which timeline to visualize and not only the last one, etc...

A current problem I am facing is about input controls. While I am only capturing mouse events, I found that games do not respond to my key presses if the GUI is active. I also need to see how to deal with overlapping windows (right now events will affect all windows).

By Bengalack

Master (133)

Bengalack's picture

03-05-2020, 19:51

@salutte how's the timeline-profiler coming along? Smile

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |