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:
+1
-1
@@ -58,7 +58,7 @@ namespace ScriptCanvas
|
||||
|
||||
void OperatorMul::Operator(Data::eType type, const ArithmeticOperands& operands, Datum& result)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::ScriptCanvas);
|
||||
AZ_PROFILE_FUNCTION(ScriptCanvas);
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace ScriptCanvas
|
||||
|
||||
void DelayNodeable::OnTick(float deltaTime, [[maybe_unused]] AZ::ScriptTimePoint time)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::ScriptCanvas);
|
||||
AZ_PROFILE_FUNCTION(ScriptCanvas);
|
||||
SCRIPT_CANVAS_PERFORMANCE_SCOPE_LATENT(GetScriptCanvasId(), GetAssetId());
|
||||
m_currentTime -= static_cast<float>(deltaTime);
|
||||
if (m_currentTime <= 0.f)
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace ScriptCanvas
|
||||
|
||||
void DurationNodeable::OnTick(float deltaTime, [[maybe_unused]] AZ::ScriptTimePoint time)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::ScriptCanvas);
|
||||
AZ_PROFILE_FUNCTION(ScriptCanvas);
|
||||
SCRIPT_CANVAS_PERFORMANCE_SCOPE_LATENT(GetScriptCanvasId(), GetAssetId());
|
||||
|
||||
if (m_elapsedTime <= m_duration)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
void TimerNodeable::OnTick(float /*deltaTime*/, AZ::ScriptTimePoint time)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(AZ::Debug::ProfileCategory::ScriptCanvas);
|
||||
AZ_PROFILE_FUNCTION(ScriptCanvas);
|
||||
SCRIPT_CANVAS_PERFORMANCE_SCOPE_LATENT(GetScriptCanvasId(), GetAssetId());
|
||||
double milliseconds = time.GetMilliseconds() - m_start.GetMilliseconds();
|
||||
double seconds = time.GetSeconds() - m_start.GetSeconds();
|
||||
|
||||
Reference in New Issue
Block a user