Record Class Profiler.ProfilingData
java.lang.Object
java.lang.Record
ca.spottedleaf.profiler.Profiler.ProfilingData
- Enclosing class:
Profiler
public static record Profiler.ProfilingData(ProfilerRegistry registry, ProfileGraph graph, long[] timers, long[] counters)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProfilingData(ProfilerRegistry registry, ProfileGraph graph, long[] timers, long[] counters) Creates an instance of aProfilingDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlong[]counters()Returns the value of thecountersrecord component.final booleanIndicates whether some other object is "equal to" this one.graph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.registry()Returns the value of theregistryrecord component.long[]timers()Returns the value of thetimersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfilingData
Creates an instance of aProfilingDatarecord class.- Parameters:
registry- the value for theregistryrecord componentgraph- the value for thegraphrecord componenttimers- the value for thetimersrecord componentcounters- the value for thecountersrecord component
-
-
Method Details
-
dumpToString
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
graph
Returns the value of thegraphrecord component.- Returns:
- the value of the
graphrecord component
-
timers
public long[] timers()Returns the value of thetimersrecord component.- Returns:
- the value of the
timersrecord component
-
counters
public long[] counters()Returns the value of thecountersrecord component.- Returns:
- the value of the
countersrecord component
-