public class TimeInstrument
Class TimeInstrument. Provides timeinstrument functionality for the Hytale server.
java.lang.Object > TimeInstrument
Field Summary
sampleCount
private
int
sampleCount
Field sampleCount.
totalProbe
private
Probe
totalProbe
Field totalProbe.
header
private
String
header
Field header.
s
final
StringBuilder
s
Field s.
childProbes
final
List
childProbes
Field childProbes.
startTime
private
long
startTime
Field startTime.
totalTime
private
long
totalTime
Field totalTime.
state
private
State
state
Field state.
probes
private
List
probes
Field probes.
probe
final
Probe
probe
Field probe.
Method Detail
TimeInstrument
public
public
TimeInstrument
(@Nonnull final String header)
Method TimeInstrument.
- Parameters:
@Nonnull final Stringheader
takeSample
public
void
takeSample
(@Nonnull final Probe probe)
Method takeSample.
- Parameters:
@Nonnull final Probeprobe
toString
public
String
toString
()
Method toString.
Probe
public
public
Probe
(@Nonnull final String name)
Method Probe.
- Parameters:
@Nonnull final Stringname
start
public
Probe
start
()
Method start.
stop
public
Probe
stop
()
Method stop.
getTotalTime
public
long
getTotalTime
()
Method getTotalTime.
getName
public
String
getName
()
Method getName.
getProbes
public
List
getProbes
()
Method getProbes.
createProbe
public
Probe
createProbe
(@Nonnull final String name)
Method createProbe.
- Parameters:
@Nonnull final Stringname
isCompatibleForAddition
public
boolean
isCompatibleForAddition
(@Nonnull final Probe other)
Method isCompatibleForAddition.
- Parameters:
@Nonnull final Probeother
add
public
void
add
(@Nonnull final Probe probe)
Method add.
- Parameters:
@Nonnull final Probeprobe