Add even more profiler events
This commit is contained in:
@@ -85,18 +85,22 @@ namespace FlaxEngine
|
||||
#if FLAX_EDITOR
|
||||
internal static void InitializeGamePlugins()
|
||||
{
|
||||
Profiler.BeginEvent("PluginManager.InitializeGamePlugins");
|
||||
for (var i = 0; i < _gamePlugins.Count; i++)
|
||||
{
|
||||
InvokeInitialize(_gamePlugins[i]);
|
||||
}
|
||||
Profiler.EndEvent();
|
||||
}
|
||||
|
||||
internal static void DeinitializeGamePlugins()
|
||||
{
|
||||
Profiler.BeginEvent("PluginManager.DeinitializeGamePlugins");
|
||||
for (var i = _gamePlugins.Count - 1; i >= 0; i--)
|
||||
{
|
||||
InvokeDeinitialize(_gamePlugins[i]);
|
||||
}
|
||||
Profiler.EndEvent();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -259,7 +259,10 @@ bool Scripting::LoadBinaryModules(const String& path, const String& projectFolde
|
||||
|
||||
// Parse Json data
|
||||
rapidjson_flax::Document document;
|
||||
document.Parse((char*)fileData.Get(), fileData.Count());
|
||||
{
|
||||
PROFILE_CPU_NAMED("Json.Parse");
|
||||
document.Parse((char*)fileData.Get(), fileData.Count());
|
||||
}
|
||||
if (document.HasParseError())
|
||||
{
|
||||
LOG(Error, "Failed to file contents.");
|
||||
|
||||
Reference in New Issue
Block a user