4
4
#include < Atom/RHI/MemoryStatisticsBuilder.h>
5
5
#include < Atom/RHI/RHISystemInterface.h>
6
6
#include < AzCore/IO/FileIO.h>
7
+ #include < AzCore/Serialization/EditContext.h>
7
8
#include < AzCore/Serialization/SerializeContext.h>
8
9
#include < AzCore/std/numeric.h>
9
10
@@ -24,6 +25,20 @@ namespace FPSProfiler
24
25
->Field (" m_configRecord" , &FPSProfilerComponent::m_configRecord)
25
26
->Field (" m_configPrecision" , &FPSProfilerComponent::m_configPrecision)
26
27
->Field (" m_configDebug" , &FPSProfilerComponent::m_configDebug);
28
+
29
+ if (AZ::EditContext* editContext = serializeContext->GetEditContext ())
30
+ {
31
+ editContext->Class <FPSProfilerComponent>(" FPS Profiler" , " Tracks FPS, GPU and CPU performance and saves it into .csv" )
32
+ ->ClassElement (AZ::Edit::ClassElements::EditorData, " " )
33
+ ->Attribute (AZ::Edit::Attributes::Category, " Performance" )
34
+ ->Attribute (AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE (" Level" ))
35
+ ->Attribute (AZ::Edit::Attributes::AutoExpand, true )
36
+
37
+ ->DataElement (AZ::Edit::UIHandlers::Default, &FPSProfilerComponent::m_configFile)
38
+ ->DataElement (AZ::Edit::UIHandlers::Default, &FPSProfilerComponent::m_configRecord)
39
+ ->DataElement (AZ::Edit::UIHandlers::Default, &FPSProfilerComponent::m_configPrecision)
40
+ ->DataElement (AZ::Edit::UIHandlers::Default, &FPSProfilerComponent::m_configDebug);
41
+ }
27
42
}
28
43
29
44
// EBus Reflect for Lua and Script Canvas
0 commit comments