Refactor name to category
This commit is contained in:
parent
7d8c906335
commit
f001bba9bb
2 changed files with 6 additions and 6 deletions
|
@ -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}," +
|
||||
|
|
|
@ -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",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue