Copyright (C) 1994, Digital Equipment Corp.
Last Modified On Fri Jun 11 13:54:56 PDT 1993 by kalsow
Modified On Wed Feb 3 22:48:42 PST 1993 by mjordan Modified On Fri May 29 16:46:51 PDT 1992 by muller
INTERFACEThis interface provides procedures to start performance tools with a very low-level communication channel.RTPerfTool ;
TYPE Handle = INTEGER; PROCEDURE Start (param: TEXT; VAR w: Handle): BOOLEAN;
If the Modula runtime parameterparam
is not set, returnFALSE
. Otherwise, use the value of that parameter to determine the name of the program to start. If the value of the parameters is, the
param
is used as its value. Start the program and wait until it writes a byte on its stdout file. If everything succeeds, returnTRUE
and setw
to a handle connected to the tool's stdin file. Otherwise, returnFALSE
.
PROCEDURE Close (w: Handle);
Makes a good effort attempt to shutdown the connection to the
tool attached to w
. The result of reusing a closed handle is
undefined.
PROCEDURE Send (w: Handle; at: ADDRESS; len: CARDINAL): BOOLEAN;
Sendslen
bytes of data beginning at addressat
to the monitoring tool connected to handlew
. ReturnsTRUE
iff the operation was successful. This routine must be called from within a runtime critical section.
END RTPerfTool.