- Added profiling

This commit is contained in:
Nils Hausfeld
2023-09-24 20:22:44 +02:00
parent 038a3603e4
commit 8d39d51f90
2 changed files with 11 additions and 3 deletions

View File

@@ -136,6 +136,8 @@ namespace FlaxEditor.Surface.ContextMenu
return;
}
Profiler.BeginEvent("VisjectCMGroup.EvaluateVisibilityWithBox");
bool isAnyVisible = false;
for (int i = 0; i < _children.Count; i++)
{
@@ -155,6 +157,8 @@ namespace FlaxEditor.Surface.ContextMenu
// Hide group if none of the items matched the filter
Visible = false;
}
Profiler.EndEvent();
}
/// <summary>