public and internal fields to props
This commit is contained in:
parent
73c89c8f3b
commit
b7faca17ee
4 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ namespace Ryujinx.Profiler
|
|||
{
|
||||
public class InternalProfile
|
||||
{
|
||||
internal ConcurrentDictionary<ProfileConfig, TimingInfo> Timers;
|
||||
internal ConcurrentDictionary<ProfileConfig, TimingInfo> Timers { get; set; }
|
||||
|
||||
private readonly object _sessionLock = new object();
|
||||
private int _sessionCounter = 0;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue