The shownew program displays a running record of the heap allocations in a Modula-3 program.

Normally, you should not start shownew directly. Rather, the runtime will start shownew and feed it with the proper data when the argument @M3shownew is given to a Modula-3 program; for example, to run the program foo and see the allocations of that process, type:

    foo @M3shownew
A Trestle window will appear; when you click the start option in the control menu, the program foo will actually start.

To set the interval between updates to X seconds, add the argument @M3update=X to the command line. X must be an integer. For example:

    foo @M3shownew @M3update=5