diff options
Diffstat (limited to 'Ryujinx.Debugger/Profiler/ProfileSorters.cs')
| -rw-r--r-- | Ryujinx.Debugger/Profiler/ProfileSorters.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Ryujinx.Debugger/Profiler/ProfileSorters.cs b/Ryujinx.Debugger/Profiler/ProfileSorters.cs deleted file mode 100644 index 2b730af5..00000000 --- a/Ryujinx.Debugger/Profiler/ProfileSorters.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Ryujinx.Debugger.Profiler -{ - public static class ProfileSorters - { - public class InstantAscending : IComparer<KeyValuePair<ProfileConfig, TimingInfo>> - { - public int Compare(KeyValuePair<ProfileConfig, TimingInfo> pair1, KeyValuePair<ProfileConfig, TimingInfo> pair2) - => pair2.Value.Instant.CompareTo(pair1.Value.Instant); - } - - public class AverageAscending : IComparer<KeyValuePair<ProfileConfig, TimingInfo>> - { - public int Compare(KeyValuePair<ProfileConfig, TimingInfo> pair1, KeyValuePair<ProfileConfig, TimingInfo> pair2) - => pair2.Value.AverageTime.CompareTo(pair1.Value.AverageTime); - } - - public class TotalAscending : IComparer<KeyValuePair<ProfileConfig, TimingInfo>> - { - public int Compare(KeyValuePair<ProfileConfig, TimingInfo> pair1, KeyValuePair<ProfileConfig, TimingInfo> pair2) - => pair2.Value.TotalTime.CompareTo(pair1.Value.TotalTime); - } - - public class TagAscending : IComparer<KeyValuePair<ProfileConfig, TimingInfo>> - { - public int Compare(KeyValuePair<ProfileConfig, TimingInfo> pair1, KeyValuePair<ProfileConfig, TimingInfo> pair2) - => StringComparer.CurrentCulture.Compare(pair1.Key.Search, pair2.Key.Search); - } - } -} |
