Example #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);
    }
Example #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);
 }