aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Profiler/InternalProfile.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2019-07-01 21:39:22 -0500
committerAc_K <Acoustik666@gmail.com>2019-07-02 04:39:22 +0200
commitb2b736abc2569ab5d8199da666aef8d8394844a0 (patch)
tree88bcc2ae4fb0d4161c95df2cd7edb12388de922a /Ryujinx.Profiler/InternalProfile.cs
parent10c74182babaf8cf6bedaeffd64c3109df4ea816 (diff)
Misc cleanup (#708)
* Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing
Diffstat (limited to 'Ryujinx.Profiler/InternalProfile.cs')
-rw-r--r--Ryujinx.Profiler/InternalProfile.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Profiler/InternalProfile.cs b/Ryujinx.Profiler/InternalProfile.cs
index bd522b00..46984601 100644
--- a/Ryujinx.Profiler/InternalProfile.cs
+++ b/Ryujinx.Profiler/InternalProfile.cs
@@ -80,7 +80,7 @@ namespace Ryujinx.Profiler
Monitor.Exit(_timerQueueClearLock);
}
- // Only sleep if queue was sucessfully cleared
+ // Only sleep if queue was successfully cleared
if (queueCleared)
{
Thread.Sleep(5);
@@ -92,9 +92,9 @@ namespace Ryujinx.Profiler
{
int count = 0;
- while (_timerQueue.TryDequeue(out var item))
+ while (_timerQueue.TryDequeue(out TimerQueueValue item))
{
- if (!Timers.TryGetValue(item.Config, out var value))
+ if (!Timers.TryGetValue(item.Config, out TimingInfo value))
{
value = new TimingInfo();
Timers.Add(item.Config, value);
@@ -206,9 +206,9 @@ namespace Ryujinx.Profiler
return (_timingFlagAverages, _timingFlagLastDelta);
}
- public void RegisterFlagReciever(Action<TimingFlag> reciever)
+ public void RegisterFlagReceiver(Action<TimingFlag> receiver)
{
- _timingFlagCallback = reciever;
+ _timingFlagCallback = receiver;
}
public void Dispose()