Gprof: specific function time [duplicate]
问题 This question already has answers here : Function execution time (2 answers) Closed 5 years ago . I want to find out the time spent by a particular function in my program. FOr that purpose, I am making use of gprof. I used the following command to get the time for the specific function but still the log file displays the results for all the functions present in the program. Please help me in this regard. gprof -F FunctionName Executable gmon.out>log 回答1: You are nearly repeating another