内存检测器,目前只是输出Profiler信息
Пример #1
0
    private Console()
    {
        this.fpsCounter     = new FPSCounter(this);
        this.memoryDetector = new MemoryDetector(this);
//        this.showGUI = App.Instance().showLogOnGUI;
        App.Instance().onUpdate += Update;
        App.Instance().onGUI    += OnGUI;
    }
Пример #2
0
 private Console()
 {
     this.fpsCounter     = new FPSCounter(this);
     this.memoryDetector = new MemoryDetector(this);
     this.showGUI        = Setting.GetBool("ShowLogOnGUI", false);
     Game.Instance().onUpdate += Update;
     Game.Instance().onGUI    += OnGUI;
 }
Пример #3
0
        protected Console()
        {
            this.fpsCounter     = new FPSCounter();
            this.memoryDetector = new MemoryDetector();

            App.Instance.onUpdate += Update;
            App.Instance.onGUI    += OnGUI;
        }
Пример #4
0
    private ConsoleDisplay()
    {
        this.fpsCounter     = new FPSCounter(this);
        this.memoryDetector = new MemoryDetector(this);
        //this.showGUI = App.Instance().showLogOnGUI;

        ShowConsole.Instance().onUpdate += Update;
        ShowConsole.Instance().onGUI    += OnGUI;
        //Application.logMessageReceived += HandleLog;
    }
Пример #5
0
    public static void Init()
    {
        fpsCounter = new FPSCounter();
        fpsCounter.Init();
        memoryDetector = new MemoryDetector();
        memoryDetector.Init();

        //        this.showGUI = App.Instance().showLogOnGUI;
        ApplicationManager.s_OnApplicationUpdate += Update;
        ApplicationManager.s_OnApplicationOnGUI  += OnGUI;
        Application.logMessageReceived           += HandleLog;
    }
Пример #6
0
    public static void Init()
    {
        fpsCounter = new FPSCounter();
        fpsCounter.Init();
        memoryDetector = new MemoryDetector();
        memoryDetector.Init();

        ApplicationManager.s_OnApplicationUpdate += Update;
        ApplicationManager.s_OnApplicationOnGUI  += OnGUI;
        Application.logMessageReceived           += HandleLog;

        //consoleStyle = GUI.skin.label;

        //consoleStyle.fontSize = 20;
    }