FileDocCategorySizeDatePackage
MemUsage.javaAPI DocApache Lucene 2.1.01474Wed Feb 14 10:46:16 GMT 2007org.apache.lucene.benchmark.stats

MemUsage

public class MemUsage extends Object
This class holds a set of memory usage values.
author
Andrzej Bialecki <ab@getopt.org>

Fields Summary
public long
maxFree
public long
minFree
public long
avgFree
public long
maxTotal
public long
minTotal
public long
avgTotal
Constructors Summary
Methods Summary
public java.lang.StringtoScaledString(int div, java.lang.String unit)
Scale down the values by divisor, append the unit string.

    StringBuffer sb = new StringBuffer();
      sb.append("free=").append(minFree / div);
      sb.append("/").append(avgFree / div);
      sb.append("/").append(maxFree / div).append(" ").append(unit);
      sb.append(", total=").append(minTotal / div);
      sb.append("/").append(avgTotal / div);
      sb.append("/").append(maxTotal / div).append(" ").append(unit);
    return sb.toString();
  
public java.lang.StringtoString()

    return toScaledString(1, "B");