public class PerformanceUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
NON_DEX_HEAP_SIZE
Approximate amount of heap space necessary for non-dexing steps of the build process.
|
| Constructor and Description |
|---|
PerformanceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumThreadsForDexArchives() |
static long |
getUserDefinedHeapSize()
Returns the heap size that was specified by the -Xmx value from the user, or an approximated
value if the -Xmx value was not set or was set improperly.
|
static java.lang.Long |
parseSizeToBytes(java.lang.String sizeParameter)
Returns a number,
Long, that is non-null when the size can be parsed successfully. |
public static final long NON_DEX_HEAP_SIZE
public static long getUserDefinedHeapSize()
@Nullable
public static java.lang.Long parseSizeToBytes(@NonNull
java.lang.String sizeParameter)
Long, that is non-null when the size can be parsed successfully.
Otherwise, null is returned.public static int getNumThreadsForDexArchives()