public QMemoryDetector(GUIConsole console)
        {
            this.x = 150;
            this.y = 20;
            this.w = 200;
            this.h = 20;

            this.allocMemoryRect          = new Rect(x, y, w, h);
            this.reservedMemoryRect       = new Rect(x, y + h, w, h);
            this.unusedReservedMemoryRect = new Rect(x, y + 2 * h, w, h);
            this.monoHeapRect             = new Rect(x, y + 3 * h, w, h);
            this.monoUsedRect             = new Rect(x, y + 4 * h, w, h);

            console.onGUICallback += OnGUI;
        }
Example #2
0
 public FPSCounter(GUIConsole console)
 {
     console.onUpdateCallback += Update;
     console.onGUICallback    += OnGUI;
 }