Free performance tools (tracing, profiling, visualization) from the HPC world, but more widely applicable, some with decades of R&D behind them, include:
BSC's https://tools.bsc.es/
TAU https://www.cs.uoregon.edu/research/tau/
The Scalasca set http://www.scalasca.org/ https://score-p.org https://github.com/orgs/score-p/repositories
HPCToolkit http://www.hpctoolkit.org/
Open|SpeedShop https://openspeedshop.org/
MAQAO (only partially free) http://www.maqao.org/
LIKWID https://hpc.fau.de/research/tools/likwid/
Ravel https://github.com/LLNL/ravel
ViTE https://solverstack.gitlabpages.inria.fr/vite/
and assorted other things, but that should be enough to be going on with.