Add profile events for Editor startup
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user