sung@uicsg.UUCP (06/20/84)
#N:uicsg:6400001:000:354 uicsg!sung Jun 20 12:03:00 1984 Help wanted for PROFILE Does anybody know how to use the lisp -p option for running profile? According to User's Programming Manual, a subroutine MONITOR should be used as an interface to profile. However, I tried every way I could think of, but failed in getting mon.out or any other might-be-useful file. sung uiucdcs!uicsg!sung
yba@mit-athena.ARPA (Mark H Levine) (06/25/84)
(Refers to Franz Lisp under 4.2bsd) I have brought up a profiling version of lisp that includes "monitor"; there are several errors in the 4.2bsd makefiles for lisp as far as following their instructions for building with "-DPROF" and other details. A major problem seems to be that profiling, even using "-p" with liszt, serves only to profile the lisp interpreter itself, not the user written routines. [cf]fasl, load and include, and getaddress do not seem to place the addresses of compiled or non-compiled routines into the namelist (symbol table) that the prof(1) command will use to analyze the monitor output (warning: this is 1 Mb in size). There is an argument to the [cf]fasl functions to create a symbol table with routine names and addresses they are loaded into, however it is in printing rather than namelist format. I'm writing a filter to create a namelist from same. I also have an interest in comparing notes on this subject with anyone more informed. Anyone interested in talking (q or a) can call me at (617) 253-1528; afternoons (Eastern Time) are best. (Also will look at how Opus 40 handles this; we are installing Symbolics MACSYMA as well--same applies). -- yba%mit-heracles@mit-mc.ARPA UUCP: decvax!mit-athena!yba
chris@umcp-cs.UUCP (06/26/84)
[Oops! Did I really write *that*? >cancel< ... retry:] Don't cfasl and ffasl simply use ``ld -A'' to link edit, and dump the new symbol table to a file in /tmp? (I can't remember the name, but they start with .1 and go up, using the previous symbol table for each new fasl'd file.) You could get the namelist from there (probably by changing prof(1) to allow an option saying ``look here for the name- list''). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland
chris@umcp-cs.UUCP (06/26/84)
Don't cfasl and ffasl simply use ``ld -A'' to link edit, and dump the new syntax table to a file in /tmp? (I can't remember the name, but they start with .1 and go up, using the previous symbol table for each new fasl'd file.) You could get the namelist from there (probably by changing prof(1) to allow an option saying ``look here for the name- list''). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland