Add more perf measurements

This commit is contained in:
Pavlos Touboulidis
2014-04-23 03:43:46 +03:00
parent c44d73d581
commit 2d8cd8299f
3 changed files with 15 additions and 6 deletions

View File

@@ -148,7 +148,10 @@ namespace OpenRA
public void LoadComplete(WorldRenderer wr)
{
foreach (var wlh in WorldActor.TraitsImplementing<IWorldLoaded>())
wlh.WorldLoaded(this, wr);
{
using (new Support.PerfTimer(wlh.GetType().Name + ".WorldLoaded"))
wlh.WorldLoaded(this, wr);
}
}
public Actor CreateActor(string name, TypeDictionary initDict)