Well my problem is this: I'm working on c on Linux. I am evaluating the execution time of different functions and use gprof for it. I was using it without problems but I had to reinstall the operating system and now the generated reports are empty. Only the explanation of the file gmon.out appears but where the information on the functions of the program should be there is nothing.
gcc -Wall -pg profiler.c -o profiler ./profiler gprof -b profiler gmon.out>reporte.txt
Above is the way I am compiling and sending the output to a txt file.
Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name Call graph granularity: each sample hit covers 2 byte(s) no time propagated index % time self children called name Index by function name
Well as you will see, the file does not have information about the functions of the program. I did not put the program file code because it is a test file and it only has function calls. Before reinstalling the operating system that same code I generated a report with information on the time of execution of the functions, so for me the problem is not in the program code. One more thing. When I open the output file with a text editor, where the function info should be, there are symbols as there would be info in binary that the editor can not show (I could not paste those symbols here), I suppose that there is the info of the functions but for some reason they are not displayed correctly.
Any suggestions are welcome.