Add profile events for Editor startup

This commit is contained in:
Wojciech Figat
2021-12-22 16:23:53 +01:00
parent 2b5f552c2c
commit 36a18a0b56
4 changed files with 73 additions and 57 deletions

View File

@@ -149,6 +149,7 @@ namespace FlaxEditor
return _projectsCache[i];
}
Profiler.BeginEvent(path);
try
{
// Load
@@ -205,6 +206,10 @@ namespace FlaxEditor
Editor.LogError("Failed to load project \"" + path + "\".");
throw;
}
finally
{
Profiler.EndEvent();
}
}
/// <inheritdoc />