Sort output for easier read

This commit is contained in:
Andy Adshead 2019-01-24 00:40:23 +00:00
parent bd39c82342
commit 6bd99b6edd

View file

@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Linq;
namespace Ryujinx.Profiler
{
@ -8,7 +9,7 @@ namespace Ryujinx.Profiler
public static void ToFile(string path, InternalProfile profile)
{
String fileData = "";
foreach (var time in profile.Timers)
foreach (var time in profile.Timers.OrderBy(key => key.Key.Tag))
{
fileData += $"{time.Key.Tag} - " +
$"Total: {profile.ConvertTicksToMS(time.Value.TotalTime)}ms, " +