Refactor name to category

This commit is contained in:
Andy Adshead 2019-01-24 01:13:15 +00:00
parent 7d8c906335
commit f001bba9bb
2 changed files with 6 additions and 6 deletions

View file

@ -8,11 +8,11 @@ namespace Ryujinx.Profiler
{
public static void ToFile(string path, InternalProfile profile)
{
String fileData = "Name,Session Group,Session Item,Count,Average(ms),Total(ms)\r\n";
String fileData = "Category,Session Group,Session Item,Count,Average(ms),Total(ms)\r\n";
foreach (var time in profile.Timers.OrderBy(key => key.Key.Tag))
{
fileData += $"{time.Key.Name}," +
fileData += $"{time.Key.Category}," +
$"{time.Key.SessionGroup}," +
$"{time.Key.SessionItem}," +
$"{time.Value.Count}," +

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Profiler
{
public struct ProfileConfig
{
public string Name;
public string Category;
public string SessionGroup, SessionItem;
private string cachedTag, cachedSession;
@ -16,7 +16,7 @@ namespace Ryujinx.Profiler
get
{
if (cachedTag == null)
cachedTag = $"{Name}{(Session == "" ? "" : $" ({Session})")}";
cachedTag = $"{Category}{(Session == "" ? "" : $" ({Session})")}";
return cachedTag;
}
}
@ -56,14 +56,14 @@ namespace Ryujinx.Profiler
{
public static ProfileConfig Test = new ProfileConfig()
{
Name = "CPU",
Category = "CPU",
SessionGroup = "Test"
};
}
public static ProfileConfig ServiceCall = new ProfileConfig()
{
Name = "ServiceCall",
Category = "ServiceCall",
};
}
}