Deprecate profiler categories based on global enum

(to be supplanted by registered budgets in the future)

Signed-off-by: Jeremy Ong <jcong@amazon.com>
This commit is contained in:
Jeremy Ong
2021-08-17 12:10:57 -06:00
parent d15d40fec6
commit df9b4d4a2f
274 changed files with 1435 additions and 1965 deletions
@@ -8,6 +8,7 @@
#include <ExpressionEvaluationSystemComponent.h>
#include <AzCore/Debug/Profiler.h>
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Serialization/EditContext.h>
#include <AzCore/Serialization/EditContextConstants.inl>
@@ -251,7 +252,7 @@ namespace ExpressionEvaluation
AZ::Outcome<void, ParsingError> ExpressionEvaluationSystemComponent::ParseRestrictedExpressionInPlace(const AZStd::unordered_set<ExpressionParserId>& parsers, AZStd::string_view expressionString, ExpressionTree& expressionTree) const
{
AZ_PROFILE_TIMER("ExpressionEvaluation", __FUNCTION__);
AZ_PROFILE_FUNCTION(ExpressionEvaluation);
expressionTree.ClearTree();
@@ -513,7 +514,7 @@ namespace ExpressionEvaluation
ExpressionResult ExpressionEvaluationSystemComponent::Evaluate(const ExpressionTree& expressionTree) const
{
AZ_PROFILE_TIMER("ExpressionEvaluation", __FUNCTION__);
AZ_PROFILE_SCOPE("ExpressionEvaluation", __FUNCTION__);
ExpressionResultStack resultStack;