for cpu and tasks
htop -> real time processing display
htop
it will return:

for gpu
radeonstat (for AMD)
gpustat (for Nvidia) or nvidia-smi
you can use this tip to make the result screen cleaner
watch -> watch the result of command
-n -> interval
example:
watch -n1 nvidia-smi
translation: watch "nvidia-smi" every 1 seconds. *you can put 2 for 2 seconds, 0.1 for 0.1 seconds.
it will return:

something similar to this and it will stay. Use this instead of loop, as loop will leave the logs in the terminal and your memory is limited.