Fairly more comprehensive profiling. The three attached graphs are a very smoothed, less smoothed, and proportional plot of the same game.
As you can see, we have the occasional spike in LongPath, probably when we move many units not in formation. ShortPath also occasionally spikes when units move around, and particularly when they combat (which can be detected because Timer, which is the JS component mostly used by unitAI, spikes too).
But as a general rule, the longest call is the update of Timer.Js, which afaik is mostly the gathering, repairing, and combat timer.
(NB: profiling are exclusive, Timer is part of Components in the above graphs).