Need your help, second day can't get this working.
I need to compile a program with gprof.
Program compiles, but doesnt generate information I need.
Program consists of C and C++ code, and is compiled on SunOS 2.6.
For C compiler we use "cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2"
For C++ compiler we use "gcc version 2.95.2 19991024 (release)"
The link stage we use the same C++ compiler (gcc).
I am not compiling entire souce with gprof options. Only the major
part of what I want to analize.
For cc I used -xpg option
and for gcc I used -pg option
link line does: gcc -pg
and links C and C++ code.
To me it looks like only the C++ code gets profiled. I see some
references to "main", but nothing I am interested in.
The program creates children processes, so I figured to set PROFDIR.
When I set it, no profile file gets generated at all (I tried a simple
a.out, that generates a file exactly where I want it).
So something bad is happening.
Please let me know if you have any suggestions.