It is supplied with Debian:
Code: Select all
sudo apt-get install visualvm
You can do sampling of CPU or Memory, check for bottlenecks in your code and/or memory issues or leaks...
Also, for those who really like to be thorough with their testing - Eclipse has built in code coverage tool which nicely colours source code by if code has been executed (green), only some branches in code were hit (yellow) or not executed at all (red). No extra tinkering needed for the tool - just select run configuration through it (same as Run and Debug)...
BTW screenshots *are* from Raspberry Pi 4 running 64bit Raspberry Pi OS...