Ejemplo n.º 1
0
 public static void WriteGroupedTasks(this TextWriter w, IEnumerable <TaskInfo> tasks)
 {
     foreach (var group in tasks.GroupBy(o => o.MethodName).OrderByDescending(g => g.Count()))
     {
         w.WriteLine($"{group.Count()}\t{ClrMdUtils.MakeReadableTypeName(group.Key)}");
     }
 }
Ejemplo n.º 2
0
 public static void WriteGroupedHandles(this TextWriter w, IEnumerable <HandleInfo> handles)
 {
     w.WriteLine("Handles:\n");
     foreach (var g in handles.GroupBy(h => h.ClrHandle?.Type.Name ?? "").OrderByDescending(g => g.Count()))
     {
         w.WriteLine($"{g.Count()}\t{ClrMdUtils.MakeReadableTypeName(g.Key)}");
     }
 }