@@ -57,14 +57,25 @@ namespace FPSProfiler
57
57
void SaveLogToFileWithNewPath (const AZ::IO::Path& newSavePath, bool useSafeChangePath) override ;
58
58
void ShowFpsOnScreen (bool enable) override ;
59
59
60
- public:
60
+ private:
61
+ // File Operations
62
+ void CreateLogFile ();
63
+ void WriteDataToFile ();
64
+
65
+ // Utility Functions
66
+ void CalculateFpsData (const float & deltaTime);
67
+ static float BytesToMB (AZStd::size_t bytes);
68
+ [[nodiscard]] bool IsPathValid (const AZ::IO::Path& path) const ;
69
+
70
+ // Debug Display
71
+ void ShowFps () const ;
72
+
61
73
// Profiler Configurations
62
74
Configs::FileSaveSettings m_configFile; // !< Stores editor settings for the profiler
63
75
Configs::RecordSettings m_configRecord; // !< Stores editor settings for the profiler
64
76
Configs::PrecisionSettings m_configPrecision; // !< Stores editor settings for the profiler
65
77
Configs::DebugSettings m_configDebug; // !< Stores editor settings for the profiler
66
78
67
- private:
68
79
// FPS Tracking Data
69
80
bool m_isProfiling = false ; // !< Flag to indicate if profiling is active
70
81
float m_minFps = 0 .0f ; // !< Lowest FPS value recorded
@@ -80,17 +91,5 @@ namespace FPSProfiler
80
91
AZStd::vector<char > m_logBuffer; // !< Buffer for log entries, cleared periodically if auto save enabled.
81
92
static constexpr AZStd::size_t MAX_LOG_BUFFER_SIZE = 1024 * 128 ; // !< Max log buffer size
82
93
static constexpr AZStd::size_t MAX_LOG_BUFFER_LINE_SIZE = 128 ; // !< Max length per log line
83
-
84
- // File Operations
85
- void CreateLogFile ();
86
- void WriteDataToFile ();
87
-
88
- // Utility Functions
89
- void CalculateFpsData (const float & deltaTime);
90
- static float BytesToMB (AZStd::size_t bytes);
91
- [[nodiscard]] bool IsPathValid (const AZ::IO::Path& path) const ;
92
-
93
- // Debug Display
94
- void ShowFps () const ;
95
94
};
96
95
} // namespace FPSProfiler
0 commit comments