on the gateway if you go to the diagnostics tab there should be a tab called scripts where you should be able to see some additional information on the running scripts. there is also a spot to check gateway CPU usage in the overview of the diagnostics tab.
you could also use a logger to help track the script system.util.getLogger | Ignition User Manual
if you're looking to check script performance you could use this \/