resetting counters in Event Debugger

A private forum for those folks working on patches for RRT3.
User avatar
Wolverine@MSU
CEO
Posts: 1166
Joined: Fri Nov 10, 2006 2:14 pm
Location: East Lansing, MI

resetting counters in Event Debugger Unread post

Anyone out there know how to reset the "Number of Times Tested" and "Number of Times Triggered" values that show up in the Event Debugger, or where in the .gmp file they are stored?
milo
Engineer
Posts: 512
Joined: Sat Nov 11, 2006 5:36 pm
Location: End of the line

Unread post

Search through the GMP for the name of the event. The event structure starts 24 bytes before the start of this string and is 2199 bytes long. The 'processed' counter is 2083 bytes into the structure, while the 'triggered' counter is 2087 bytes in. Both counters are four bytes, stored LSB first.

For in-memory work, [62BE18h] points to the EventTable. Offset +30h of the EventTable points to the base of an array of Events, while +14h contains the number of events. In-memory events look just like in-file events, so again look at +2083(+823h) for the 'processed' counter and +2087(+827h) for the 'triggered' counter.
Post Reply