public static void Main() { var memoryVisitor = new MemoryVisitor(); var memoryProfiles = new List <IMemoryProfile>() { new CacheMemory(), new SwapMemory() }; var gb = new GarbageCollector(memoryProfiles, memoryVisitor); Console.WriteLine("Total alocated: {0}", memoryVisitor.totalAlocated); }
public static void Main() { var memoryVisitor = new MemoryVisitor(); var memoryProfiles = new List<IMemoryProfile>(){ new CacheMemory(), new SwapMemory() }; var gb = new GarbageCollector(memoryProfiles, memoryVisitor); Console.WriteLine("Total alocated: {0}", memoryVisitor.totalAlocated); }