All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ng.gdxutils.model.LogManager Maven / Gradle / Ivy

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