kayvan@mrspoc.Transact.COM (Kayvan Sylvan) (01/09/90)
I am attempting to profile a large program.
According to the monitor(S) man page:
"To profile the entire program, it is sufficient to use
extern etext();
...
monitor((int (*)())2, etext, buf, bufsize, nfunc);
etext lies just above all the program text."
I tried the above just after main() starts, and right before exiting,
I do the monitor((int (*)()) 0) call to dump out mon.out.
All seems to work (I compile everything with -p, run the program and
get mon.out). But when I run "prof", I get:
% prof foobar
nname 612
No time accumulated
What gives? Anyone got any ideas? I get the same result if I use end()
instead of etext()...
---Kayvan
--
Kayvan Sylvan @ Transact Software, Inc. -*- Los Altos, CA (415) 961-6112
Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan
<======================== Think Globally, Act Locally ========================>