- 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.
- 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.Stopwatch
-
Returns the counter instance associated with a given type in this stopwatch.
- getCounters() - Method in class net.obvj.performetrics.Stopwatch
-
Returns the counters associated with this stopwatch instance.
- getCpuTimeNanos() - Static method in class net.obvj.performetrics.util.SystemUtils
-
Returns the total time spent using a CPU for the current thread in nanoseconds.
- getHours() - Method in class net.obvj.performetrics.util.Duration
-
Returns the number of hours in this 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.
- 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.
- 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
-
- 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.
- 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.
- 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 the timing session.
- stop() - Method in class net.obvj.performetrics.Stopwatch
-
Stops the timing session.
- Stopwatch - Class in net.obvj.performetrics
-
A convenient timing object that supports multiple counter types.
- 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.
- SystemUtils - Class in net.obvj.performetrics.util
-
A utility class for retrieving system data.