@@ -0,0 +1,1774 @@
+package com.badlogic.gdx.ingenuity.utils.scene2d;%0A%0Aimport com.badlogic.gdx.Gdx;%0Aimport com.badlogic.gdx.graphics.Color;%0Aimport com.badlogic.gdx.graphics.Texture;%0Aimport com.badlogic.gdx.graphics.g2d.BitmapFont;%0Aimport com.badlogic.gdx.ingenuity.utils.LazyBitmapFont;%0Aimport com.badlogic.gdx.scenes.scene2d.ui.Label;%0Aimport com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;%0Aimport com.badlogic.gdx.scenes.scene2d.ui.Table;%0Aimport com.badlogic.gdx.utils.Disposable;%0A%0A/**%0A * @%E4%BD%9C%E8%80%85 mitkey%0A * @%E6%97%B6%E9%97%B4 2017%E5%B9%B45%E6%9C%8818%E6%97%A5 %E4%B8%8B%E5%8D%883:04:53%0A * @%E7%B1%BB%E8%AF%B4%E6%98%8E DebugMonitor.java %3Cbr/%3E%0A * @%E7%89%88%E6%9C%AC 0.0.1%0A */%0Apublic class DebugMonitor extends Table implements Disposable %7B%0A%0A%09private BitmapFont bitmapFont = new LazyBitmapFont(18);%0A%0A%09public DebugMonitor() %7B%0A%09%09LabelStyle labelStyle = new Label.LabelStyle(bitmapFont, Color.WHITE);%0A%0A%09%09defaults().left().pad(10);%0A%0A%09%09add(new NumberLabel%3CInteger%3E(%22Fps:%22, -1, labelStyle) %7B%0A%09%09%09@Override%0A%09%09%09public Integer getValue() %7B%0A%09%09%09%09return Gdx.graphics.getFramesPerSecond();%0A%09%09%09%7D%0A%09%09%7D).row();%0A%09%09add(new NumberLabel%3CFloat%3E(%22Heap:%22, -1f, labelStyle) %7B%0A%09%09%09@Override%0A%09%09%09public Float getValue() %7B%0A%09%09%09%09return Gdx.app.getJavaHeap() * 1f / 1024 / 1024;%0A%09%09%09%7D%0A%09%09%7D).row();%0A%09%09add(new NumberLabel%3CFloat%3E(%22Native:%22, -1f, labelStyle) %7B%0A%09%09%09@Override%0A%09%09%09public Float getValue() %7B%0A%09%09%09%09return Gdx.app.getNativeHeap() * 1f / 1024 / 1024;%0A%09%09%09%7D%0A%09%09%7D).row();%0A%09%09add(new NumberLabel%3CInteger%3E(%22ManagedTextures:%22, -1, labelStyle) %7B%0A%09%09%09@Override%0A%09%09%09public Integer getValue() %7B%0A%09%09%09%09return Texture.getNumManagedTextures();%0A%09%09%09%7D%0A%09%09%7D).row();%0A%09%09add(new NumberLabel%3CInteger%3E(%22RenderCalls:%22, -1, labelStyle) %7B%0A%09%09%09@Override%0A%09%09%09public Integer getValue() %7B%0A%09%09%09%09return SimpleStage.SPRITE_BATCH.renderCalls;%0A%09%09%09%7D%0A%09%09%7D).row();%0A%0A%09%09setPosition(10, 10);%0A%09%09pack();%0A%09%7D%0A%0A%09@Override%0A%09public void dispose() %7B%0A%09%09bitmapFont.dispose();%0A%09%7D%0A%0A%7D%0A

add DebugMonitor.java