This video gives a brief overview of how to debug and optimize C++ code.
More on C++ debugging: https://byuhpc.github.io/sci-comp-cou...
Valgrind: https://valgrind.org/docs/manual/quic...
GDB: https://www.bitdegree.org/learn/gdb-d...
Perf: https://perf.wiki.kernel.org/index.ph...