org.opensextant.processing.RuntimeTools Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opensextant-xponents-core Show documentation
Show all versions of opensextant-xponents-core Show documentation
An information extraction toolkit focused on geography and temporal entities
package org.opensextant.processing;
public class RuntimeTools {
/**
* Easily digestible version of memory report.
* @return KB of memory
*/
public static final int reportMemory() {
Runtime R = Runtime.getRuntime();
long usedMemory = R.totalMemory() - R.freeMemory();
return (int) (usedMemory / 1024);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy