In addition to the usual profiling tools (e.g. see prof(1), gprof(1), pixie(1) and qpt(1)), SRC Modula-3 provides support for line-based profiling.
To enable collection of data during the execution of programs, add m3_option("-Z") to your m3makefile. To interpret the result, run analyze_coverage(1).
Note that because of the extensive data collection performed by this mode of profiling, the execution time of the program can be significantly larger when it is enabled; thus, simultaneous time profiling can produce erroneous results. For the same reason, the profiling data file is rather large; furthermore, as it is augmented by each execution of the program, you may want to compress it from time to time (see analyze_coverage(1) for more details).
m3-request@src.dec.com
Last modified on Mon Sep 25 18:30:29 PDT 1995 by heydon modified on Fri Apr 22 11:00:49 PDT 1994 by kalsow modified on Thu Jan 7 18:40:57 PST 1993 by muller