Record Class CompilationProfile.Phase
java.lang.Object
java.lang.Record
io.micronaut.python.compiler.CompilationProfile.Phase
- Record Components:
name- The name, dotted by the component owning it (javac.task,python.transform)depth- The nesting depth of the phase in the phase that was running when it startednanos- The total inclusive time of every invocationinvocations- The number of invocations
- Enclosing class:
CompilationProfile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinvocationsrecord component.doublemillis()The total time in milliseconds.name()Returns the value of thenamerecord component.longnanos()Returns the value of thenanosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Phase
Creates an instance of aPhaserecord class.- Parameters:
name- the value for thenamerecord componentdepth- the value for thedepthrecord componentnanos- the value for thenanosrecord componentinvocations- the value for theinvocationsrecord component
-
-
Method Details
-
millis
public double millis()The total time in milliseconds.- Returns:
- The total time in milliseconds
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
depth
-
nanos
-
invocations
public int invocations()Returns the value of theinvocationsrecord component.- Returns:
- the value of the
invocationsrecord component
-