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
@@ -187,7 +187,7 @@ namespace Blast
void BlastFamilyComponent::Activate()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::System);
AZ_PROFILE_FUNCTION(System);
AZ_Assert(m_blastAsset.GetId().IsValid(), "BlastFamilyComponent created with invalid blast asset.");
@@ -199,7 +199,7 @@ namespace Blast
void BlastFamilyComponent::Deactivate()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::System);
AZ_PROFILE_FUNCTION(System);
// cleanup collision handlers
for (auto& itr : m_collisionHandlers)
@@ -216,7 +216,7 @@ namespace Blast
void BlastFamilyComponent::Spawn()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Physics);
AZ_PROFILE_FUNCTION(Physics);
if (!m_blastAsset.IsReady())
{
@@ -297,7 +297,7 @@ namespace Blast
void BlastFamilyComponent::Despawn()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Physics);
AZ_PROFILE_FUNCTION(Physics);
m_isSpawned = false;
@@ -414,7 +414,7 @@ namespace Blast
void BlastFamilyComponent::OnCollisionBegin(const AzPhysics::CollisionEvent& collisionEvent)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Physics);
AZ_PROFILE_FUNCTION(Physics);
for (const auto* body : {collisionEvent.m_body1, collisionEvent.m_body2})
{
@@ -493,7 +493,7 @@ namespace Blast
void BlastFamilyComponent::ApplyStressDamage()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Physics);
AZ_PROFILE_FUNCTION(Physics);
if (m_solver)
{
@@ -589,7 +589,7 @@ namespace Blast
// Update positions of entities with render meshes corresponding to their right dynamic bodies.
void BlastFamilyComponent::SyncMeshes()
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::Physics);
AZ_PROFILE_FUNCTION(Physics);
if (m_actorRenderManager)
{