murphy@WISDOM.WEIZMANN.AC.IL (Nir Friedman) (04/30/91)
Hello I am working in C++ using g++ (ver. 1.39.0) on sun4 and sun3. I'm trying to 'prof' and 'gprof' on my program, since it is quite large (25K lines). The compiler documentation (g++.texinfo updated 1.37) state that the -p and -pg options are not supported yet. I have noticed though, that when compiling with -p the compiler generate calls to 'mcount' at the right locations. The problem is that when I run the program, no profiling happens. I guess this has to do with the startup module (crt1+.o ?) of g++. Do you know of any way of solving this ? or any way of profiling C++ programs ? Thanks in advance Nir Friedman