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
@@ -212,7 +212,7 @@ namespace WhiteBox
AzFramework::DebugDisplayRequests& debugDisplay, const AZ::Transform& worldFromLocal,
const AzFramework::CameraState& cameraState, const IntersectionAndRenderData& renderData)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::AzToolsFramework);
AZ_PROFILE_FUNCTION(AzToolsFramework);
const float vertexIndicatorLength = cl_whiteBoxVertexIndicatorLength;
const float vertexIndicatorWidth = cl_whiteBoxVertexIndicatorWidth;
@@ -252,7 +252,7 @@ namespace WhiteBox
const IntersectionAndRenderData& renderData, [[maybe_unused]] const AzFramework::ViewportInfo& viewportInfo,
AzFramework::DebugDisplayRequests& debugDisplay)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::AzToolsFramework);
AZ_PROFILE_FUNCTION(AzToolsFramework);
TryDestroyModifier(m_polygonTranslationModifier);
TryDestroyModifier(m_edgeTranslationModifier);
@@ -276,7 +276,7 @@ namespace WhiteBox
Api::EdgeHandles DefaultMode::FindInteractiveEdgeHandles(const WhiteBoxMesh& whiteBox)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::AzToolsFramework);
AZ_PROFILE_FUNCTION(AzToolsFramework);
// get all edge handles for hovered polygon
const Api::EdgeHandles polygonHoveredEdgeHandles = m_polygonTranslationModifier
@@ -322,7 +322,7 @@ namespace WhiteBox
const WhiteBoxMesh& whiteBox, const PolygonScaleModifier* polygonScaleModifier,
const EdgeScaleModifier* edgeScaleModifier, const Api::VertexHandle vertexHandle)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::AzToolsFramework);
AZ_PROFILE_FUNCTION(AzToolsFramework);
if (Api::VertexIsHidden(whiteBox, vertexHandle))
{
@@ -371,7 +371,7 @@ namespace WhiteBox
const AZStd::optional<PolygonIntersection>& polygonIntersection,
const AZStd::optional<VertexIntersection>& vertexIntersection)
{
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::AzToolsFramework);
AZ_PROFILE_FUNCTION(AzToolsFramework);
WhiteBoxMesh* whiteBox = nullptr;
EditorWhiteBoxComponentRequestBus::EventResult(