Class Profiler.Entry
java.lang.Object
org.jpos.util.Profiler.Entry
- Enclosing class:
Profiler
A single timed checkpoint entry recorded by the Profiler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the entry duration in milliseconds.longReturns the raw entry duration in nanoseconds.Returns the event name.longReturns the total elapsed duration in milliseconds.longReturns the raw total elapsed duration in nanoseconds.voidsetDurationInNanos(long duration) Sets the entry duration in nanoseconds.voidsetEventName(String myEvent) Sets the event name for this entry.voidsetTotalDurationInNanos(long totalDuration) Sets the total elapsed duration in nanoseconds.toString()
-
Constructor Details
-
Entry
public Entry()Default constructor — initialises all fields to empty/zero.
-
-
Method Details
-
setEventName
Sets the event name for this entry.- Parameters:
myEvent- the event label
-
getEventName
-
setDurationInNanos
Sets the entry duration in nanoseconds.- Parameters:
duration- duration in nanoseconds
-
getDuration
Returns the entry duration in milliseconds.- Returns:
- duration in milliseconds
-
getDurationInNanos
Returns the raw entry duration in nanoseconds.- Returns:
- duration in nanoseconds
-
setTotalDurationInNanos
Sets the total elapsed duration in nanoseconds.- Parameters:
totalDuration- total duration in nanoseconds
-
getTotalDuration
Returns the total elapsed duration in milliseconds.- Returns:
- total duration in milliseconds
-
getTotalDurationInNanos
Returns the raw total elapsed duration in nanoseconds.- Returns:
- total duration in nanoseconds
-
toString
-