public and internal fields to props

This commit is contained in:
Andy Adshead 2019-01-30 07:11:01 +00:00
commit b7faca17ee
4 changed files with 12 additions and 12 deletions

View file

@ -10,7 +10,7 @@ namespace Ryujinx.Profiler
{ {
public class InternalProfile public class InternalProfile
{ {
internal ConcurrentDictionary<ProfileConfig, TimingInfo> Timers; internal ConcurrentDictionary<ProfileConfig, TimingInfo> Timers { get; set; }
private readonly object _sessionLock = new object(); private readonly object _sessionLock = new object();
private int _sessionCounter = 0; private int _sessionCounter = 0;

View file

@ -7,12 +7,12 @@ namespace Ryujinx.Profiler
public class ProfilerSettings public class ProfilerSettings
{ {
// Default settings for profiler // Default settings for profiler
public bool Enabled = false; public bool Enabled { get; set; } = false;
public bool FileDumpEnabled = false; public bool FileDumpEnabled { get; set; } = false;
public string DumpLocation = ""; public string DumpLocation { get; set; } = "";
public float UpdateRate = 0.1f; public float UpdateRate { get; set; } = 0.1f;
// 19531225 = 5 seconds in ticks // 19531225 = 5 seconds in ticks
public long History = 19531225; public long History { get; set; } = 19531225;
} }
} }

View file

@ -12,13 +12,13 @@ namespace Ryujinx.Profiler
public class TimingInfo public class TimingInfo
{ {
// Timestamps // Timestamps
public long TotalTime; public long TotalTime { get; set; }
public long Instant; public long Instant { get; set; }
// Measurement counts // Measurement counts
public int Count; public int Count { get; set; }
public int InstantCount; public int InstantCount { get; set; }
// Work out average // Work out average
public long AverageTime => (Count == 0) ? -1 : TotalTime / Count; public long AverageTime => (Count == 0) ? -1 : TotalTime / Count;

View file

@ -32,7 +32,7 @@ namespace Ryujinx.Profiler.UI.SharpFontHelpers
private int CharacterTextureSheet; private int CharacterTextureSheet;
private CharacterInfo[] characters; private CharacterInfo[] characters;
public Color fontColor = Color.Black; public Color fontColor { get; set; } = Color.Black;
public void InitalizeTextures() public void InitalizeTextures()
{ {