Cpp, Debugging, Profiling, Programming, Technology.
as usual. This will create a file named gmon.out in the current directory, which contains the profiling data: ./your_program The gmon.out file is generated when the program finishes executing. It contains information about the functions called during execution and the time spent in each function.