예제 #1
0
    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);
    }
예제 #2
0
 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);
 }