Enum Class TelemetryUnit
- All Implemented Interfaces:
Serializable
,Comparable<TelemetryUnit>
,Constable
Telemetry unit used in the
TelemetryFormat
annotation.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe telemetry value has the unit "bytes".The telemetry value has the unit "microseconds".The telemetry value has the unit "milliseconds".The telemetry value has the unit "per second".The telemetry value has the unit "percent".The telemetry value is a unitless number. -
Method Summary
Modifier and TypeMethodDescriptionstatic TelemetryUnit
Returns the enum constant of this class with the specified name.static TelemetryUnit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN
The telemetry value is a unitless number. -
PER_SECOND
The telemetry value has the unit "per second". -
PERCENT
The telemetry value has the unit "percent". -
MILLISECONDS
The telemetry value has the unit "milliseconds". Conversion into higher unit prefixes such as seconds is done automatically as required. -
MICROSECONDS
The telemetry value has the unit "microseconds". Conversion into higher unit prefixes such as seconds is done automatically as required. -
BYTES
The telemetry value has the unit "bytes". Conversion into higher unit prefixes such as kB, MB or GB is done automatically as required.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
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-