[profiler_capture_api] removed now unnecessary ProfilerRequests EBus alias after AZ::Interface conversion
Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
@@ -60,20 +60,7 @@ namespace AZ
|
||||
virtual bool EndCapture() = 0;
|
||||
};
|
||||
|
||||
class ProfilerRequestsTraits
|
||||
: public AZ::EBusTraits
|
||||
{
|
||||
public:
|
||||
// EBusTraits overrides
|
||||
static constexpr AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
|
||||
static constexpr AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
|
||||
|
||||
// Allow multiple threads to concurrently make requests
|
||||
using MutexType = AZStd::mutex;
|
||||
};
|
||||
|
||||
using ProfilerSystemInterface = AZ::Interface<ProfilerRequests>;
|
||||
using ProfilerRequestBus = AZ::EBus<ProfilerRequests, ProfilerRequestsTraits>;
|
||||
|
||||
//! helper function for getting the profiler capture location from the settings registry that
|
||||
//! includes fallback handing in the event the registry value can't be determined
|
||||
|
||||
@@ -144,8 +144,6 @@ namespace Profiler
|
||||
|
||||
void ProfilerSystemComponent::Activate()
|
||||
{
|
||||
AZ::Debug::ProfilerRequestBus::Handler::BusConnect();
|
||||
|
||||
m_cpuProfiler.Init();
|
||||
}
|
||||
|
||||
@@ -153,8 +151,6 @@ namespace Profiler
|
||||
{
|
||||
m_cpuProfiler.Shutdown();
|
||||
|
||||
AZ::Debug::ProfilerRequestBus::Handler::BusDisconnect();
|
||||
|
||||
// Block deactivation until the IO thread has finished serializing the CPU data
|
||||
if (m_cpuDataSerializationThread.joinable())
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Profiler
|
||||
{
|
||||
class ProfilerSystemComponent
|
||||
: public AZ::Component
|
||||
, protected AZ::Debug::ProfilerRequestBus::Handler
|
||||
, protected AZ::Debug::ProfilerRequests
|
||||
{
|
||||
public:
|
||||
AZ_COMPONENT(ProfilerSystemComponent, "{3f52c1d7-d920-4781-8ed7-88077ec4f305}");
|
||||
@@ -38,7 +38,7 @@ namespace Profiler
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
|
||||
// ProfilerRequestBus interface implementation
|
||||
// ProfilerRequests interface implementation
|
||||
bool IsActive() const override;
|
||||
void SetActive(bool active) override;
|
||||
bool CaptureFrame(const AZStd::string& outputFilePath) override;
|
||||
|
||||
Reference in New Issue
Block a user