[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

query about profile info


Compile the program you want to profile with the -pg option. On
running the program a file calles gmon.out will be created in the
current working directory which contains the profiling information.
You can then run gprof on it. 

I dont know if the PROFDIR variable is supported or not.


Y. V. Chaitanya Kumar writes:
 > If we compile a c-program with cc -p option and run the application, it
 > generates profile info for each task in PROFDIR. But gcc is not supporting
 > the PROFDIR environment variable to create profiles.Is there any
 > alternative to generate profiles using gcc.