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
+3 -4
View File
@@ -1244,19 +1244,18 @@ namespace UnitTest
int ChildFunction(int input)
{
AZ_PROFILE_TIMER("UnitTest", nullptr, NamedRegister);
AZ_PROFILE_FUNCTION(System);
int result = 5;
for (int i = 0; i < 10000; ++i)
{
result += i % (input + 3);
}
AZ_PROFILE_TIMER_END(NamedRegister);
return result;
}
int ChildFunction1(int input)
{
AZ_PROFILE_TIMER("UnitTest", "Child1");
AZ_PROFILE_SCOPE(System, "Child1");
int result = 5;
for (int i = 0; i < 10000; ++i)
{
@@ -1267,7 +1266,7 @@ namespace UnitTest
int Profile1(int numIterations)
{
AZ_PROFILE_TIMER("UnitTest", "Custom name");
AZ_PROFILE_SCOPE(System, "Custom name");
int result = 0;
for (int i = 0; i < numIterations; ++i)
{