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:
@@ -45,11 +45,11 @@ namespace PhysX
|
||||
{
|
||||
if (!detached)
|
||||
{
|
||||
AZ_PROFILE_EVENT_BEGIN(AZ::Debug::ProfileCategory::Physics, eventName);
|
||||
AZ_PROFILE_BEGIN(Physics, eventName);
|
||||
}
|
||||
else
|
||||
{
|
||||
AZ_PROFILE_INTERVAL_START(AZ::Debug::ProfileCategory::Physics, AZ::Crc32(eventName), eventName);
|
||||
AZ_PROFILE_INTERVAL_START(Physics, AZ::Crc32(eventName), eventName);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
@@ -59,11 +59,11 @@ namespace PhysX
|
||||
{
|
||||
if (!detached)
|
||||
{
|
||||
AZ_PROFILE_EVENT_END(AZ::Debug::ProfileCategory::Physics);
|
||||
AZ_PROFILE_END();
|
||||
}
|
||||
else
|
||||
{
|
||||
AZ_PROFILE_INTERVAL_END(AZ::Debug::ProfileCategory::Physics, AZ::Crc32(eventName));
|
||||
AZ_PROFILE_INTERVAL_END(Physics, AZ::Crc32(eventName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user