Skip to content

Commit e164d0e

Browse files
committed
make config private | refactor
Signed-off-by: Wojciech Czerski <[email protected]>
1 parent ca30500 commit e164d0e

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

Gems/FPSProfiler/Code/Source/Clients/FPSProfilerComponent.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,25 @@ namespace FPSProfiler
5757
void SaveLogToFileWithNewPath(const AZ::IO::Path& newSavePath, bool useSafeChangePath) override;
5858
void ShowFpsOnScreen(bool enable) override;
5959

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+
6173
// Profiler Configurations
6274
Configs::FileSaveSettings m_configFile; //!< Stores editor settings for the profiler
6375
Configs::RecordSettings m_configRecord; //!< Stores editor settings for the profiler
6476
Configs::PrecisionSettings m_configPrecision; //!< Stores editor settings for the profiler
6577
Configs::DebugSettings m_configDebug; //!< Stores editor settings for the profiler
6678

67-
private:
6879
// FPS Tracking Data
6980
bool m_isProfiling = false; //!< Flag to indicate if profiling is active
7081
float m_minFps = 0.0f; //!< Lowest FPS value recorded
@@ -80,17 +91,5 @@ namespace FPSProfiler
8091
AZStd::vector<char> m_logBuffer; //!< Buffer for log entries, cleared periodically if auto save enabled.
8192
static constexpr AZStd::size_t MAX_LOG_BUFFER_SIZE = 1024 * 128; //!< Max log buffer size
8293
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;
9594
};
9695
} // namespace FPSProfiler

0 commit comments

Comments
 (0)