- call() - Method in class net.obvj.performetrics.monitors.MonitoredCallable
-
- Configuration - Class in net.obvj.performetrics.config
-
An object that maintains common configurable parameters for Perfometrics objects.
- Configuration() - Constructor for class net.obvj.performetrics.config.Configuration
-
- ConfigurationHolder - Class in net.obvj.performetrics.config
-
- ConversionMode - Enum in net.obvj.performetrics
-
Defines supported conversion modes.
- convert(long, TimeUnit, TimeUnit) - Method in enum net.obvj.performetrics.ConversionMode
-
Converts the given duration and time unit into another time unit.
- convert(long, TimeUnit, TimeUnit) - Static method in class net.obvj.performetrics.util.TimeUnitConverter
-
Converts the given duration and time unit into another time unit, as double, with no
rounding.
- convertAndRound(long, TimeUnit, TimeUnit) - Static method in class net.obvj.performetrics.util.TimeUnitConverter
-
Converts the given duration to a different time unit, with double-precision;
For example, to convert 10 minutes to milliseconds, use:
TimeUnitConverter.convertAndRound(10, TimeUnit.MINUTES, TimeUnit.MILLISECONDS)
Note: The number of decimal places applied is determined by calling
ConfigurationHolder.getConfiguration().getScale()
- convertAndRound(long, TimeUnit, TimeUnit, int) - Static method in class net.obvj.performetrics.util.TimeUnitConverter
-
Converts the given duration to a different time unit, with double-precision and a
custom number of decimal places.
- Counter - Class in net.obvj.performetrics
-
An object that stores time units of a particular type for elapsed time evaluation.
- Counter(Counter.Type) - Constructor for class net.obvj.performetrics.Counter
-
Builds a Counter with a given type and default time unit.
- Counter(Counter.Type, TimeUnit) - Constructor for class net.obvj.performetrics.Counter
-
Builds a Counter with the given type and time unit.
- Counter(Counter.Type, TimeUnit, ConversionMode) - Constructor for class net.obvj.performetrics.Counter
-
Builds a Counter with the given type, time unit, and conversion mode.
- Counter.Type - Enum in net.obvj.performetrics
-
Enumerates all supported counter types, defining a particular time fetch strategy for
each of them.
- createStarted() - Static method in class net.obvj.performetrics.Stopwatch
-
Provides a started stopwatch for convenience with default counter types.
- createStarted(Counter.Type...) - Static method in class net.obvj.performetrics.Stopwatch
-
Provides a started stopwatch for convenience with specific counter types.
- generateLine(char, int) - Static method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Generates a string using the specified character repeated to a given length.
- getAllCountersByType() - Method in class net.obvj.performetrics.monitors.MonitoredOperation
-
Returns a map of populated counters grouped by type, where each entry in the counters
list represents a timing session.
- getAllCountersByType() - Method in class net.obvj.performetrics.Stopwatch
-
Returns a map of populated counters grouped by type, where each entry in the counters
list represents a timing session.
- getAlternativeLine() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getConfiguration() - Static method in class net.obvj.performetrics.config.ConfigurationHolder
-
Returns the current configuration.
- getConversionMode() - Method in class net.obvj.performetrics.config.Configuration
-
Returns the conversion mode applied in supported operations if no specific mode is set.
- getConversionMode() - Method in class net.obvj.performetrics.Counter
-
- getCounter(Counter.Type) - Method in class net.obvj.performetrics.TimingSession
-
Returns the counter instance associated with a given type in this timing session.
- getCounters(Counter.Type) - Method in class net.obvj.performetrics.monitors.MonitoredOperation
-
Returns all counters associated with a given type in this monitored operation.
- getCounters(Counter.Type) - Method in class net.obvj.performetrics.Stopwatch
-
Returns a list of populated counters for a specific type in this stopwatch, or an empty
list if no counter is found (for example, if the stopwatch was not yet started, or
after reset).
- getCounters() - Method in class net.obvj.performetrics.TimingSession
-
Returns the counters associated with this timing session.
- getCpuTimeNanos() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns the total time spent using a CPU for the current thread in nanoseconds.
- getDurationFormat() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getHeaderFormat() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getHours() - Method in class net.obvj.performetrics.util.Duration
-
Returns the number of hours in this duration.
- getInternalDuration() - Method in class net.obvj.performetrics.util.Duration
-
- getMinutes() - Method in class net.obvj.performetrics.util.Duration
-
Returns the number of minutes within the hour in this duration.
- getNanoseconds() - Method in class net.obvj.performetrics.util.Duration
-
Returns the number of nanoseconds within the second in this duration.
- getPrintStyleForDetails() - Method in class net.obvj.performetrics.config.Configuration
-
- getPrintStyleForSummary() - Method in class net.obvj.performetrics.config.Configuration
-
- getRowFormat() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getScale() - Method in class net.obvj.performetrics.config.Configuration
-
Returns the maximum number of decimal places applied if double-precision conversion
mode is set.
- getSeconds() - Method in class net.obvj.performetrics.util.Duration
-
Returns the number of seconds within the minute in this duration.
- getSectionHeaderFormat() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getSectionSummaryRowFormat() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getSimpleLine() - Method in class net.obvj.performetrics.util.print.PrintStyle
-
- getSystemTimeNanos() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns system time (the time spent running OS kernel code on behalf of your
application) in nanoseconds, by calculating the difference between CPU time and user
time for the current thread.
- getTime(TimeUnit) - Method in enum net.obvj.performetrics.Counter.Type
-
Executes a particular time fetching mode that varies for each counter type.
- getTimeUnit() - Method in class net.obvj.performetrics.config.Configuration
-
Returns the time unit maintained by default if no specific time unit is specified.
- getTimeUnit() - Method in class net.obvj.performetrics.Counter
-
- getType() - Method in class net.obvj.performetrics.Counter
-
- getTypes() - Method in class net.obvj.performetrics.Stopwatch
-
Returns the counter types associated with this stopwatch instance.
- getUnitsAfter() - Method in class net.obvj.performetrics.Counter
-
- getUnitsBefore() - Method in class net.obvj.performetrics.Counter
-
- getUserTimeNanos() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns the CPU time that the current thread has executed in user mode in nanoseconds
(i.e., the time spent running current thread's own code).
- getWallClockTimeMillis() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns the current time in milliseconds.
- getWallClockTimeNanos() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns the current value of the current Java Virtual Machine's high-resolution time
source in nanoseconds.
- setConfiguration(Configuration) - Static method in class net.obvj.performetrics.config.ConfigurationHolder
-
Sets a given configuration as current.
- setConversionMode(ConversionMode) - Method in class net.obvj.performetrics.config.Configuration
-
Defines the default conversion mode to be applied in supported operations if no
specific mode is set.
- setDefaultConversionMode(ConversionMode) - Static method in class net.obvj.performetrics.Performetrics
-
Sets a conversion mode to be applied by supported operations if no specific mode is
set.
- setDefaultPrintStyleForDetails(PrintStyle) - Static method in class net.obvj.performetrics.Performetrics
-
- setDefaultPrintStyleForSummary(PrintStyle) - Static method in class net.obvj.performetrics.Performetrics
-
- setDefaultTimeUnit(TimeUnit) - Static method in class net.obvj.performetrics.Performetrics
-
Sets a time unit to be maintained by default if no specific time unit is specified.
- setPrintStyleForDetails(PrintStyle) - Method in class net.obvj.performetrics.config.Configuration
-
- setPrintStyleForSummary(PrintStyle) - Method in class net.obvj.performetrics.config.Configuration
-
- setScale(int) - Method in class net.obvj.performetrics.config.Configuration
-
Sets a maximum number of decimal places to be applied if double-precision conversion
mode is set.
- setScale(int) - Static method in class net.obvj.performetrics.Performetrics
-
Sets a maximum number of decimal places to be applied if double-precision conversion
mode is set.
- setTimeUnit(TimeUnit) - Method in class net.obvj.performetrics.config.Configuration
-
Defines the time unit to be maintained by default if no specific time unit is
specified.
- setUnitsAfter(long) - Method in class net.obvj.performetrics.Counter
-
- setUnitsAfter() - Method in class net.obvj.performetrics.Counter
-
Populates the unitsAfter field with the value retrieved by the time fetching
mode defined by this counter's type.
- setUnitsBefore(long) - Method in class net.obvj.performetrics.Counter
-
- setUnitsBefore() - Method in class net.obvj.performetrics.Counter
-
Populates the unitsBefore field with the value retrieved by the time fetching
mode defined by this counter's type.
- start() - Method in class net.obvj.performetrics.Stopwatch
-
Starts a new timing session.
- start() - Method in class net.obvj.performetrics.TimingSession
-
Starts the timing session.
- stop() - Method in class net.obvj.performetrics.Stopwatch
-
Stops the current timing session.
- stop() - Method in class net.obvj.performetrics.TimingSession
-
Stops the timing session.
- Stopwatch - Class in net.obvj.performetrics
-
A convenient timing object that supports multiple counter types and timing sessions.
- Stopwatch() - Constructor for class net.obvj.performetrics.Stopwatch
-
Creates a new stopwatch with default counter types.
- Stopwatch(Counter.Type...) - Constructor for class net.obvj.performetrics.Stopwatch
-
Creates a new stopwatch with specific counter types.
- sum(Duration, Duration) - Static method in class net.obvj.performetrics.util.Duration
-
Returns the sum of two durations.
- SUMMARIZED_CSV - Static variable in class net.obvj.performetrics.util.print.PrintStyle
-
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values).
- SUMMARIZED_CSV_NO_HEADER - Static variable in class net.obvj.performetrics.util.print.PrintStyle
-
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values), without header.
- SUMMARIZED_TABLE_FULL - Static variable in class net.obvj.performetrics.util.print.PrintStyle
-
A string-based style for the summarized stopwatch formatter, which prints data
in tabular format, with horizontal lines separating each row.
- SUMMARIZED_TABLE_NO_HEADER - Static variable in class net.obvj.performetrics.util.print.PrintStyle
-
A string-based style for the summarized stopwatch formatter, which prints data
in tabular format without header.
- SystemUtils - Class in net.obvj.performetrics.util
-
A utility class for retrieving system data.
- TimeUnitConverter - Class in net.obvj.performetrics.util
-
A utility class for
TimeUnit conversion.
- TimingSession - Class in net.obvj.performetrics
-
A convenient timing object that supports multiple counter types.
- TimingSession() - Constructor for class net.obvj.performetrics.TimingSession
-
Creates a new timing session with default counter types.
- TimingSession(Counter.Type...) - Constructor for class net.obvj.performetrics.TimingSession
-
Creates a new timing session with custom counter types.
- toSeconds() - Method in class net.obvj.performetrics.util.Duration
-
Converts this duration to the total length in seconds and fractional nanoseconds, with
a fixed scale of 9, so nanoseconds precision is preserved.
- toString() - Method in class net.obvj.performetrics.Counter
-
Returns a string representation of this object.
- toString() - Method in enum net.obvj.performetrics.Counter.Type
-
Returns the textual representation associated with this type.
- toString() - Method in class net.obvj.performetrics.util.Duration
-
Returns a string representation of this Duration in default format.
- toString(DurationFormat) - Method in class net.obvj.performetrics.util.Duration
-
Returns a string representation of this Duration with a specific format.
- toString(DurationFormat, boolean) - Method in class net.obvj.performetrics.util.Duration
-
Returns a string representation of this Duration with a specific format.
- toTimeUnit(TimeUnit) - Method in class net.obvj.performetrics.util.Duration
-
Converts this duration to the total length in a given time unit, with default scale.
- toTimeUnit(TimeUnit, int) - Method in class net.obvj.performetrics.util.Duration
-
Converts this duration to the total length in a given time unit, with a custom scale.
- withAlternativeLine(char, int) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines an alternative line, to be generated using the specified character repeated to
a given length.
- withAlternativeLine(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines an alternative line.
- withDurationFormat(DurationFormat) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines the
DurationFormat to be applied on all rows containing a time
duration.
- withHeader() - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Enables the header row, to be formatted using the same general format for all rows.
- withHeader(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Enables the header row and defines a specific string format to be applied.
- withLegends() - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Enables printing legends after time durations.
- withoutHeader() - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Explicitly disables the header row.
- withoutLegends() - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Explicitly disables legends after time durations.
- withoutSectionSummary() - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Explicitly disables the section summary row.
- withRowFormat(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines a string format to be applied for all rows.
- withSectionHeaderFormat(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines a string format to the applied for the section headers.
- withSectionSummary(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Enables the section summary row and defines the string format to be applied.
- withSimpleLine(char, int) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines a simple line, to be generated using the specified character repeated to a
given length.
- withSimpleLine(String) - Method in class net.obvj.performetrics.util.print.PrintStyleBuilder
-
Defines a simple line.