[atom_cpu_profiler_gem_promotion] created profiler ImGui variant module and hooked up data/viz to their respective modules

Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
AMZN-ScottR
2021-10-12 11:52:56 -07:00
parent ead3a4b9ae
commit 805cd96c28
9 changed files with 254 additions and 35 deletions
+26 -3
View File
@@ -6,17 +6,40 @@
*
*/
#include <ProfilerModuleInterface.h>
#include <ProfilerSystemComponent.h>
#include <AzCore/Memory/SystemAllocator.h>
#include <AzCore/Module/Module.h>
namespace Profiler
{
class ProfilerModule
: public ProfilerModuleInterface
: public AZ::Module
{
public:
AZ_RTTI(ProfilerModule, "{1908f95f-30b9-4e27-8ae7-1e9fe487ef87}", ProfilerModuleInterface);
AZ_RTTI(ProfilerModule, "{4A286414-B387-4D20-9A7E-2F792755B769}", AZ::Module);
AZ_CLASS_ALLOCATOR(ProfilerModule, AZ::SystemAllocator, 0);
ProfilerModule()
{
// Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
// Add ALL components descriptors associated with this gem to m_descriptors.
// This will associate the AzTypeInfo information for the components with the the SerializeContext, BehaviorContext and EditContext.
// This happens through the [MyComponent]::Reflect() function.
m_descriptors.insert(m_descriptors.end(), {
ProfilerSystemComponent::CreateDescriptor(),
});
}
/**
* Add required SystemComponents to the SystemEntity.
*/
AZ::ComponentTypeList GetRequiredSystemComponents() const override
{
return AZ::ComponentTypeList{
azrtti_typeid<ProfilerSystemComponent>(),
};
}
};
}// namespace Profiler