From 371e9e1eeb06f01345af2ab57910d256b01f4e77 Mon Sep 17 00:00:00 2001 From: Andy Baker Date: Wed, 25 Sep 2024 18:52:59 +0100 Subject: [PATCH] Include build string in profile summary. Add a 40fps bucket --- Assets/Scripts/App.cs | 2 +- Assets/Scripts/Debug/ProfilingManager.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/App.cs b/Assets/Scripts/App.cs index c565941f35..9e3da37c64 100644 --- a/Assets/Scripts/App.cs +++ b/Assets/Scripts/App.cs @@ -481,7 +481,7 @@ void DestroyIntroSketch() Resources.UnloadUnusedAssets(); } - static string GetStartupString() + public static string GetStartupString() { string str = $"{App.kAppDisplayName} {Config.m_VersionNumber}"; diff --git a/Assets/Scripts/Debug/ProfilingManager.cs b/Assets/Scripts/Debug/ProfilingManager.cs index 22d0364035..41f7e51a4f 100644 --- a/Assets/Scripts/Debug/ProfilingManager.cs +++ b/Assets/Scripts/Debug/ProfilingManager.cs @@ -216,6 +216,7 @@ private void OutputStats() string branch = GitUtils.GetGitBranchName(); message.AppendLine($"Git branch: {branch}"); #endif + message.AppendLine($"Build: {App.GetStartupString()}"); message.AppendLine($"Profile name: {profileName} Filename: {fileName} Human name: {humanName}"); if (App.UserConfig.Profiling.PerfgateOutput)