com.ng.gdxutils.model.LogManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-utils Show documentation
Show all versions of gdx-utils Show documentation
A java library that used over libGdx game framework.
The newest version!
package com.ng.gdxutils.model;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.TimeUtils;
/**
* (c) 2016 Abhishek Aryan
*
* @author Abhishek Aryan
* @since 24-07-2016
*
*/
public class LogManager {
static float mbData = 1048576.0F;
static long startTime;
public static void initTime(){
startTime = TimeUtils.nanoTime();
}
public static void error(String paramString) {
Gdx.app.error("OBJECT", paramString);
}
public static void heapSize(String paramString) {
error(paramString + "JavaHeap:" + (float) Gdx.app.getJavaHeap() / mbData);
error(paramString + "NativeHeap:" + (float) Gdx.app.getNativeHeap() / mbData);
error("\n\n\n");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy