GDB and GPROF

GPROF Tutorial – How to use Linux GNU GCC Profiling Tool

How to Debug C Program using gdb in 6 Simple Steps

Learning C with gdb - Blog - Recurse Center