public interface SizeClassesMetric
限定符和类型 | 方法和说明 |
---|---|
int |
normalizeSize(int size)
Normalizes usable size that would result from allocating an object with the
specified size and alignment.
|
long |
pageIdx2size(int pageIdx)
Computes size from lookup table according to pageIdx.
|
long |
pageIdx2sizeCompute(int pageIdx)
Computes size according to pageIdx.
|
int |
pages2pageIdx(int pages)
Normalizes request size up to the nearest pageSize class.
|
int |
pages2pageIdxFloor(int pages)
Normalizes request size down to the nearest pageSize class.
|
int |
size2SizeIdx(int size)
Normalizes request size up to the nearest size class.
|
int |
sizeIdx2size(int sizeIdx)
Computes size from lookup table according to sizeIdx.
|
int |
sizeIdx2sizeCompute(int sizeIdx)
Computes size according to sizeIdx.
|
int sizeIdx2size(int sizeIdx)
int sizeIdx2sizeCompute(int sizeIdx)
long pageIdx2size(int pageIdx)
long pageIdx2sizeCompute(int pageIdx)
int size2SizeIdx(int size)
size
- request sizeint pages2pageIdx(int pages)
pages
- multiples of pageSizesint pages2pageIdxFloor(int pages)
pages
- multiples of pageSizesint normalizeSize(int size)
size
- request size