Detailed CPU usage
-
Sometimes CPU seems to randomly spike despite nothing new being called, sometimes it dips to 0 and so forth..
Would be good to have a way to view what each call cost during a given tick.
-
You can write your own profiling code by using Game.cpu.getUsed(). However, many cpu spikes are caused by things largely out of your control, such as garbage collection. If you're only seeing occasional spikes, it's probably nothing to worry about.
-
You should install of the the stats programs in the Screepers org.