ml.shifu.guagua.util
类 MemoryUtils

java.lang.Object
  继承者 ml.shifu.guagua.util.MemoryUtils

public final class MemoryUtils
extends Object

Helper static methods for tracking memory usage. Copy from Apache Giraph.


方法摘要
static double freeMemoryMB()
          Get free memory in megabytes
static String getRuntimeMemoryStats()
          Get runtime memory stats
static double maxMemoryMB()
          Get maximum memory in megabytes
static double totalMemoryMB()
          Get total memory in megabytes
static double usedMemoryMB()
          Get used memory in megabytes
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

totalMemoryMB

public static double totalMemoryMB()
Get total memory in megabytes

返回:
total memory in megabytes

maxMemoryMB

public static double maxMemoryMB()
Get maximum memory in megabytes

返回:
maximum memory in megabytes

freeMemoryMB

public static double freeMemoryMB()
Get free memory in megabytes

返回:
free memory in megabytes

usedMemoryMB

public static double usedMemoryMB()
Get used memory in megabytes

返回:
free memory in megabytes

getRuntimeMemoryStats

public static String getRuntimeMemoryStats()
Get runtime memory stats

返回:
String of all runtime stats.


Copyright © 2014. All Rights Reserved.