Uses of Class
net.obvj.performetrics.Counter.Type
-
Packages that use Counter.Type Package Description net.obvj.performetrics Provides convenient classes for extracting performance metrics of Java code.net.obvj.performetrics.monitors Provides classes that can monitor other ones.net.obvj.performetrics.util.print Provides classes for printing stopwatch data. -
-
Uses of Counter.Type in net.obvj.performetrics
Fields in net.obvj.performetrics with type parameters of type Counter.Type Modifier and Type Field Description static List<Counter.Type>Performetrics. ALL_TYPESA list containing all the available counter types.Methods in net.obvj.performetrics that return Counter.Type Modifier and Type Method Description Counter.TypeCounter. getType()Returns theCounter.Typeassociated with this counter.static Counter.TypeCounter.Type. valueOf(String name)Returns the enum constant of this type with the specified name.static Counter.Type[]Counter.Type. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.obvj.performetrics that return types with arguments of type Counter.Type Modifier and Type Method Description Map<Counter.Type,List<Counter>>TimingSessionContainer. getAllCountersByType()Returns a map of counters grouped by type, where each entry in the counters list represents a timing session.List<Counter.Type>TimingSessionContainer. getTypes()Returns the counter types associated with this object.Methods in net.obvj.performetrics with parameters of type Counter.Type Modifier and Type Method Description static StopwatchStopwatch. createStarted(Counter.Type... types)Provides a started stopwatch with specific counter types, for convenience.DurationTimingSession. elapsedTime(Counter.Type type)A convenient method that returns the elapsed time of a specific counter.doubleTimingSession. elapsedTime(Counter.Type type, TimeUnit timeUnit)A convenient method that returns the elapsed time of a specific counter, in the specified time unit.doubleTimingSession. elapsedTime(Counter.Type type, TimeUnit timeUnit, ConversionMode conversionMode)A convenient method that returns the elapsed time of a specific counter, in the specified time unit, by applying a customConversionMode.DurationTimingSessionContainer. elapsedTime(Counter.Type type)Returns the total elapsed time for a specific counter type.doubleTimingSessionContainer. elapsedTime(Counter.Type type, TimeUnit timeUnit)Returns the total elapsed time for a specific counter type, in the specified time unit.doubleTimingSessionContainer. elapsedTime(Counter.Type type, TimeUnit timeUnit, ConversionMode conversionMode)Returns the total elapsed time for a specific counter type, in the specified time unit, with a customConversionModeapplied.DurationUnmodifiableTimingSession. elapsedTime(Counter.Type type)doubleUnmodifiableTimingSession. elapsedTime(Counter.Type type, TimeUnit timeUnit)doubleUnmodifiableTimingSession. elapsedTime(Counter.Type type, TimeUnit timeUnit, ConversionMode conversionMode)List<Counter>TimingSessionContainer. getCounters(Counter.Type type)Returns a list of available counters for a specific type in this object, or an empty list if no counter is found -- for example, if no timing session was started, or after callingreset().static MonitoredRunnablePerformetrics. monitorOperation(Runnable runnable, Counter.Type... types)Runs the specifiedRunnable, which can also be a lambda expression, and collects metrics for the specified counter type(s) only.Constructors in net.obvj.performetrics with parameters of type Counter.Type Constructor Description Counter(Counter.Type type)Builds a Counter with a given type and default time unit.Counter(Counter.Type type, TimeUnit timeUnit)Builds a Counter with the given type and time unit.Counter(Counter.Type type, TimeUnit timeUnit, ConversionMode conversionMode)Builds a Counter with the given type, time unit, and conversion mode.Stopwatch(Counter.Type... types)Creates a new stopwatch with specific counter types.Constructor parameters in net.obvj.performetrics with type arguments of type Counter.Type Constructor Description TimingSession(List<Counter.Type> types)Creates a new timing session with custom counter types. -
Uses of Counter.Type in net.obvj.performetrics.monitors
Constructors in net.obvj.performetrics.monitors with parameters of type Counter.Type Constructor Description MonitoredCallable(Callable<V> callable, Counter.Type... types)Builds this monitored operation with a givenCallableand one or more specific counter types to be maintained.MonitoredRunnable(Runnable runnable, Counter.Type... types)Builds this monitored operation with a givenRunnableand one or more specific counter types to be maintained. -
Uses of Counter.Type in net.obvj.performetrics.util.print
Methods in net.obvj.performetrics.util.print with parameters of type Counter.Type Modifier and Type Method Description PrintStyleBuilderPrintStyleBuilder. withCustomCounterName(Counter.Type type, String name)Defines a custom counter name for a specific counter type.PrintStyleBuilderPrintStyleBuilder. withoutTypes(Counter.Type... excludedTypes)Removes the specified type(s) from the output, if present in the stopwatch.
-