diff --git a/Ryujinx.Profiler/InternalProfile.cs b/Ryujinx.Profiler/InternalProfile.cs index da5ed9ca32..b5ce5284be 100644 --- a/Ryujinx.Profiler/InternalProfile.cs +++ b/Ryujinx.Profiler/InternalProfile.cs @@ -10,7 +10,7 @@ namespace Ryujinx.Profiler { public class InternalProfile { - internal ConcurrentDictionary Timers; + internal ConcurrentDictionary Timers { get; set; } private readonly object _sessionLock = new object(); private int _sessionCounter = 0; diff --git a/Ryujinx.Profiler/Settings.cs b/Ryujinx.Profiler/Settings.cs index b55f36f4bc..f74a3cda2d 100644 --- a/Ryujinx.Profiler/Settings.cs +++ b/Ryujinx.Profiler/Settings.cs @@ -7,12 +7,12 @@ namespace Ryujinx.Profiler public class ProfilerSettings { // Default settings for profiler - public bool Enabled = false; - public bool FileDumpEnabled = false; - public string DumpLocation = ""; - public float UpdateRate = 0.1f; + public bool Enabled { get; set; } = false; + public bool FileDumpEnabled { get; set; } = false; + public string DumpLocation { get; set; } = ""; + public float UpdateRate { get; set; } = 0.1f; // 19531225 = 5 seconds in ticks - public long History = 19531225; + public long History { get; set; } = 19531225; } } diff --git a/Ryujinx.Profiler/TimingInfo.cs b/Ryujinx.Profiler/TimingInfo.cs index 530dfd89c4..4bf7d21296 100644 --- a/Ryujinx.Profiler/TimingInfo.cs +++ b/Ryujinx.Profiler/TimingInfo.cs @@ -12,13 +12,13 @@ namespace Ryujinx.Profiler public class TimingInfo { // Timestamps - public long TotalTime; - public long Instant; + public long TotalTime { get; set; } + public long Instant { get; set; } // Measurement counts - public int Count; - public int InstantCount; - + public int Count { get; set; } + public int InstantCount { get; set; } + // Work out average public long AverageTime => (Count == 0) ? -1 : TotalTime / Count; diff --git a/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs b/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs index b6aeb0d909..677a7405f1 100644 --- a/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs +++ b/Ryujinx.Profiler/UI/SharpFontHelpers/FontService.cs @@ -32,7 +32,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers private int CharacterTextureSheet; private CharacterInfo[] characters; - public Color fontColor = Color.Black; + public Color fontColor { get; set; } = Color.Black; public void InitalizeTextures() {