[profiler_capture_api] started migration of ProfilerRequests EBus to AZ::Interface

Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
AMZN-ScottR
2021-10-26 15:15:52 -07:00
parent 57a69978b9
commit a2c42ab072
6 changed files with 52 additions and 27 deletions
@@ -128,10 +128,18 @@ namespace Profiler
ProfilerSystemComponent::ProfilerSystemComponent()
{
if (AZ::Debug::ProfilerSystemInterface::Get() == nullptr)
{
AZ::Debug::ProfilerSystemInterface::Register(this);
}
}
ProfilerSystemComponent::~ProfilerSystemComponent()
{
if (AZ::Debug::ProfilerSystemInterface::Get() == this)
{
AZ::Debug::ProfilerSystemInterface::Unregister(this);
}
}
void ProfilerSystemComponent::Activate()