Exemple #1
0
 public string ToDifferenceString(MemoryUsageInfo comparison)
 {
     return(string.Format(
                "Compared to {0}:{1}\tWorking set: {2}{1}\tManaged memory before collect: {3}{1}\tAfter collect: {4}",
                comparison.Description,
                Environment.NewLine,
                (WorkingSet - comparison.WorkingSet).ToDifferenceString(),
                (ManagedMemoryBeforeCollect - comparison.ManagedMemoryBeforeCollect).ToDifferenceString(),
                (ManagedMemoryAfterCollect - comparison.ManagedMemoryAfterCollect).ToDifferenceString()));
 }
Exemple #2
0
 public void DumpComparisonToConsole(MemoryUsageInfo comparison)
 {
     Console.WriteLine(ToDifferenceString(comparison));
 }