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
@@ -231,14 +231,14 @@ namespace AreaChart
void AreaChart::AddPoint(size_t seriesId, int position, unsigned int value)
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
LinePoint linePoint(position,value);
AddPoint(seriesId,linePoint);
}
void AreaChart::AddPoint(size_t seriesId, const LinePoint& linePoint)
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
if (!IsValidSeriesId(seriesId))
{
AZ_Error("AreaChart", false, "Invalid SeriesId given.");
@@ -419,7 +419,7 @@ namespace AreaChart
void AreaChart::paintEvent(QPaintEvent* event)
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
(void)event;
if (m_sizingDirty)
@@ -435,7 +435,7 @@ namespace AreaChart
if (m_regenGraph)
{
AZ_PROFILE_TIMER("Standalone Tools", "Generating Graph Data");
AZ_PROFILE_FUNCTION(AzToolsFramework);
m_regenGraph = false;
if (m_verticalAxis)
@@ -203,7 +203,7 @@ namespace Driller
void RedrawGraph()
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
switch (m_displayMode)
{
case DisplayMode::Active:
@@ -518,7 +518,7 @@ namespace Driller
void RefreshView(FrameNumberType frameId)
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
AZStd::unordered_set< Key > discoveredSet;
m_tableViewOrdering.clear();
@@ -1628,7 +1628,7 @@ namespace Driller
void ReplicaDataView::ParseFrameData(FrameNumberType frameId)
{
AZ_PROFILE_TIMER("Standalone Tools", __FUNCTION__);
AZ_PROFILE_FUNCTION(AzToolsFramework);
if (frameId < 0 || frameId >= m_aggregator->GetFrameCount() || m_parsedFrames.find(frameId) != m_parsedFrames.end())
{
return;