From f2b9a9c2b0a3d7af3b56df9ae09db8a3b2d8506c Mon Sep 17 00:00:00 2001 From: emmauss Date: Thu, 6 Feb 2020 11:25:47 +0000 Subject: Render Profiler in GUI (#854) * move profiler output to gui * addressed commits, rebased * removed whitespaces --- Ryujinx.Profiler/UI/ProfileSorters.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Ryujinx.Profiler/UI/ProfileSorters.cs (limited to 'Ryujinx.Profiler/UI/ProfileSorters.cs') diff --git a/Ryujinx.Profiler/UI/ProfileSorters.cs b/Ryujinx.Profiler/UI/ProfileSorters.cs deleted file mode 100644 index 9f66de22..00000000 --- a/Ryujinx.Profiler/UI/ProfileSorters.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Ryujinx.Profiler.UI -{ - public static class ProfileSorters - { - public class InstantAscending : IComparer> - { - public int Compare(KeyValuePair pair1, KeyValuePair pair2) - => pair2.Value.Instant.CompareTo(pair1.Value.Instant); - } - - public class AverageAscending : IComparer> - { - public int Compare(KeyValuePair pair1, KeyValuePair pair2) - => pair2.Value.AverageTime.CompareTo(pair1.Value.AverageTime); - } - - public class TotalAscending : IComparer> - { - public int Compare(KeyValuePair pair1, KeyValuePair pair2) - => pair2.Value.TotalTime.CompareTo(pair1.Value.TotalTime); - } - - public class TagAscending : IComparer> - { - public int Compare(KeyValuePair pair1, KeyValuePair pair2) - => StringComparer.CurrentCulture.Compare(pair1.Key.Search, pair2.Key.Search); - } - } -} -- cgit v1.2.3