Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions src/jit-analyze/jit-analyze.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ public static int Summarize(IEnumerable<FileDelta> fileDeltaList, Config config)
{
path = fd.path,
name = md.name,
deltaBytes = md.deltaBytes
deltaBytes = md.deltaBytes,
count = md.baseOffsets != null ? md.baseOffsets.Count() : 1
}).OrderByDescending(x => x.deltaBytes).ToList();
int sortedMethodCount = sortedMethodDelta.Count();
int methodCount = (sortedMethodCount < requestedCount)
Expand All @@ -405,7 +406,12 @@ public static int Summarize(IEnumerable<FileDelta> fileDeltaList, Config config)
foreach (var method in sortedMethodDelta.GetRange(0, methodCount)
.Where(x => x.deltaBytes > 0))
{
Console.WriteLine(" {2,8} : {0} - {1}", method.path, method.name, method.deltaBytes);
Console.Write(" {2,8} : {0} - {1}", method.path, method.name, method.deltaBytes);
if (method.count > 1)
{
Console.Write(" ({0} methods)", method.count);
}
Console.WriteLine();
}
}

Expand All @@ -419,7 +425,12 @@ public static int Summarize(IEnumerable<FileDelta> fileDeltaList, Config config)
.Where(x => x.deltaBytes < 0)
.OrderBy(x => x.deltaBytes))
{
Console.WriteLine(" {2,8} : {0} - {1}", method.path, method.name, method.deltaBytes);
Console.Write(" {2,8} : {0} - {1}", method.path, method.name, method.deltaBytes);
if (method.count > 1)
{
Console.Write(" ({0} methods)", method.count);
}
Console.WriteLine();
}
}

Expand Down