public class MeasureUnit
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static MeasureUnit |
IGNORE |
限定符和类型 | 方法和说明 |
---|---|
static MeasureUnit |
build(long count,
long unit)
构造一个测量单位
|
static MeasureUnit |
build(long count,
java.lang.Object[] sample)
构造一个测量单位
|
long |
getCount() |
long |
measureMemory() |
public static final MeasureUnit IGNORE
public static MeasureUnit build(long count, java.lang.Object[] sample)
count
- 测量单元数量sample
- 样本测量单元对象public static MeasureUnit build(long count, long unit)
count
- 测量单元数量unit
- 一个测量单元的内存大小public long getCount()
public long measureMemory()