(*
    Title: 	UnixMonitor - Definitions
    LastEdit:	"Tue Sep 11 11:48:24 1984"
    Author: 	Mary Thompson
		Cambridge University Computer Laboratory
*)

DEFINITION MODULE UnixMonitor;

FROM SYSTEM IMPORT ADDRESS;

EXPORT QUALIFIED 
   MonStart,MonFinish;
   
(* Monitor provides a Modula-2 interface to the Unix system call profil. *)   
   
PROCEDURE MonStart(lowpc,highpc,scale : CARDINAL);
(* MonStart turns on profiling. lowpc and highpc are the lower and upper 
   limits of the pc values (in bytes) that will be monitored. scale 
   indicates how many instructions should be mapped to each slot in the 
   histogram.  Scale should be a power of 2 (e.g. 1,2,4,8...).
*)   
PROCEDURE MonFinish;
(* MonFinish turns off profiling and writes out the histogram into mon.out 
*)

END UnixMonitor.
