There is a lot of profiling and debugging tools for C/C++, funny enough a lot of them are originated from the KDE community. From the top of my mind:
* valgrind (https://valgrind.org/): Contains a lot of tools
* Heaptrack (https://apps.kde.org/heaptrack/): For memory allocation analysis
* KCachegrind (https://apps.kde.org/kcachegrind/): For call graph vizualisations
* ELF Dissector (https://apps.kde.org/elf-dissector/): For analysis of binary files/dependencies
* Massif-Visualizer (https://apps.kde.org/massif-visualizer/): Valgrind massif visualiser
* Gammaray (https://www.kdab.com/development-resources/qt-tools/gammaray...): Tool to analysis the current state of a Qt project a bit like you would do with firefox inspector.