Mail Archives: djgpp/1996/02/27/18:05:24
Martynas Kunigelis wrote:
>
> First, I have read the FAQ, but found nothing... The problem is: whenever I
> try to run gprof on a COFF image compiled with the -pg switch, it complains
> about a missing file `gmon.out'. However, if I simply run `redir -t' on my
> program, the mentioned file is created and I can run gprof OK. I studied the
> sources of redir, it just merely calls time() if the -t switch is specified.
> So what gives? I've no idea.
> One more thing: are you guys satisfied with messages like:
> c:/djgpp/bin\ld.exe: ......
> ^----- what about this, eh? It can be simply corrected by
> changing the xm-dos.h file in the gcc distribution.
> DJ promissed to put my example of hooking the kdb interrupt somewhere in a
> readable place, so check it out. Works ok under windoze, os/2 and cwsdpmi.
> I'll try it under qdpmi when I have it. This is it for now, bye...
>
> Martynas Kunigelis
You nearly did it right, make a program with the profiling option (foo.exe
_AND_ foo.), then run foo, and finally the profiler.
This is quite clearly explained in the FAQ ( I'm allowed to say that, I just learned
it from it ;-).
Ciao
Tom
- Raw text -