Package io.perfmark.impl
Enum Mark.Operation
- java.lang.Object
-
- java.lang.Enum<Mark.Operation>
-
- io.perfmark.impl.Mark.Operation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Mark.Operation>
- Enclosing class:
- Mark
public static enum Mark.Operation extends java.lang.Enum<Mark.Operation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVENT_N1S1EVENT_N1S2EVENT_N2S2Tagged event, since attach tags can't apply to eventsEVENT_N2S3Tagged event, since attach tags can't apply to eventsLINKMARKNONETAG_KEYED_N0S2TAG_KEYED_N1S1TAG_KEYED_N2S1TAG_N0S1An unkeyed tag that has a single string value.TAG_N1S0An unkeyed tag that has a single numeric value.TAG_N1S1An unkeyed tag that has a string and numeric value.TASK_END_N1S0TASK_END_N1S1TASK_END_N1S2TASK_START_N1S1startTask(String taskName) 1 long for nanoTime.TASK_START_N1S2startTask(String name, String subTaskName) 1 long for nanoTime.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMarkers()intgetNumbers()Mark.OperationTypegetOpType()intgetStrings()static intmaxMarkers()static intmaxNumbers()static intmaxStrings()static Mark.OperationvalueOf(int code)Returns the enum constant of this type with the specified name.static Mark.OperationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Mark.Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Mark.Operation NONE
-
TASK_START_N1S1
public static final Mark.Operation TASK_START_N1S1
startTask(String taskName) 1 long for nanoTime.
-
TASK_START_N1S2
public static final Mark.Operation TASK_START_N1S2
startTask(String name, String subTaskName) 1 long for nanoTime.
-
TASK_END_N1S0
public static final Mark.Operation TASK_END_N1S0
-
TASK_END_N1S1
public static final Mark.Operation TASK_END_N1S1
-
TASK_END_N1S2
public static final Mark.Operation TASK_END_N1S2
-
EVENT_N1S1
public static final Mark.Operation EVENT_N1S1
-
EVENT_N1S2
public static final Mark.Operation EVENT_N1S2
-
EVENT_N2S2
public static final Mark.Operation EVENT_N2S2
Tagged event, since attach tags can't apply to events
-
EVENT_N2S3
public static final Mark.Operation EVENT_N2S3
Tagged event, since attach tags can't apply to events
-
MARK
public static final Mark.Operation MARK
-
LINK
public static final Mark.Operation LINK
-
TAG_N0S1
public static final Mark.Operation TAG_N0S1
An unkeyed tag that has a single string value.
-
TAG_N1S0
public static final Mark.Operation TAG_N1S0
An unkeyed tag that has a single numeric value.
-
TAG_N1S1
public static final Mark.Operation TAG_N1S1
An unkeyed tag that has a string and numeric value. The values are unrelated to each other.
-
TAG_KEYED_N1S1
public static final Mark.Operation TAG_KEYED_N1S1
-
TAG_KEYED_N2S1
public static final Mark.Operation TAG_KEYED_N2S1
-
TAG_KEYED_N0S2
public static final Mark.Operation TAG_KEYED_N0S2
-
-
Method Detail
-
values
public static Mark.Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Mark.Operation c : Mark.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mark.Operation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getOpType
public Mark.OperationType getOpType()
-
getNumbers
public int getNumbers()
-
getStrings
public int getStrings()
-
getMarkers
public int getMarkers()
-
maxNumbers
public static int maxNumbers()
-
maxStrings
public static int maxStrings()
-
maxMarkers
public static int maxMarkers()
-
valueOf
public static Mark.Operation valueOf(int code)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
code- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-