public enum TelemetryUnit extends java.lang.Enum<TelemetryUnit>
TelemetryFormat
annotation.Enum Constant and Description |
---|
BYTES
The telemetry value has the unit "bytes".
|
MICROSECONDS
The telemetry value has the unit "microseconds".
|
MILLISECONDS
The telemetry value has the unit "milliseconds".
|
PER_SECOND
The telemetry value has the unit "per second".
|
PERCENT
The telemetry value has the unit "percent".
|
PLAIN
The telemetry value is a unitless number.
|
Modifier and Type | Method and Description |
---|---|
static TelemetryUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TelemetryUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TelemetryUnit PLAIN
public static final TelemetryUnit PER_SECOND
public static final TelemetryUnit PERCENT
public static final TelemetryUnit MILLISECONDS
public static final TelemetryUnit MICROSECONDS
public static final TelemetryUnit BYTES
In JProfiler, probe telemetry data is stored in 32-bit ints. If you expect higher values than 2^31 bytes, you can
for example return kB instead and set TelemetryFormat.scale()
to -3
.
public static TelemetryUnit[] values()
for (TelemetryUnit c : TelemetryUnit.values()) System.out.println(c);
public static TelemetryUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null