Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!coherent!mrspoc!kayvan From: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Newsgroups: comp.unix.xenix Subject: Profiling on Xenix 2.3.2? Message-ID: Date: 9 Jan 90 08:01:15 GMT Sender: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Distribution: comp Organization: Transact Software, Inc., Los Altos, CA Lines: 31 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 ========================>