Profiling on Xenix 2.3.2?
Kayvan Sylvan
kayvan at mrspoc.Transact.COM
Tue Jan 9 19:01:15 AEST 1990
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 at Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan
<======================== Think Globally, Act Locally ========================>
More information about the Comp.unix.xenix
mailing list