Package | Description |
---|---|
org.javasimon |
Core package, contains
Simon implementations, with
the SimonManager as the center point of the API. |
org.javasimon.callback.logging |
LoggingCallback is able to log stopwatch splits and statistics once
in a while (N per millisecond, every N split, when split is longer than N ms, etc.)
and to various outputs (SLF4J, JUL). |
org.javasimon.clock |
Modifier and Type | Interface and Description |
---|---|
interface |
Manager
Manager provides access to Simons and manages them in a tree structure.
|
Modifier and Type | Class and Description |
---|---|
class |
DisabledManager
Manager implementation that does nothing or returns null or NullSimon as expected
from manager in disabled state. |
class |
EnabledManager
Implements fully functional
Manager in the enabled state. |
class |
SwitchingManager
Manager implementation that supports SwitchingManager.enable() and SwitchingManager.disable() and switches between
backing EnabledManager and DisabledManager accordingly. |
Modifier and Type | Method and Description |
---|---|
static Split |
Split.create(long nanos,
SimonClock clock)
Creates simulated non-running Split that took specific time in nanos.
|
static Split |
Split.start(SimonClock clock)
Creates a new Split for direct use without
Stopwatch ("anonymous split") based on specified SimonClock . |
Constructor and Description |
---|
EnabledManager(SimonClock clock) |
Constructor and Description |
---|
PeriodicLogTemplate(LogTemplate<C> delegate,
long period,
SimonClock clock) |
Modifier and Type | Class and Description |
---|---|
class |
TestClock
TestClock allows setting any arbitrary values for millis and nanos.
|
Modifier and Type | Field and Description |
---|---|
static SimonClock |
SimonClock.CPU
Clock implementation measuring CPU time.
|
static SimonClock |
SimonClock.SYSTEM
Default implementation using
System.currentTimeMillis() and System.nanoTime() . |
Copyright © 2019. All rights reserved.