public abstract class Timekeeper extends StopwatchBlocks
| Modifier and Type | Class and Description |
|---|---|
static class |
Timekeeper.ActiveStopwatch
INTERNAL API
|
static class |
Timekeeper.ActiveStopwatch$
INTERNAL API
|
static class |
Timekeeper.RemoteActiveStopwatch
INTERNAL API
|
static class |
Timekeeper.RemoteStartedStopwatch
INTERNAL API
|
static class |
Timekeeper.RemoteStopwatch
INTERNAL API
|
static class |
Timekeeper.RemoteSuspendedStopwatch
INTERNAL API
|
static class |
Timekeeper.RemoteTimekeeper |
static class |
Timekeeper.StartedStopwatch
INTERNAL API
|
static class |
Timekeeper.StartedStopwatch$
INTERNAL API
|
static class |
Timekeeper.Stopwatches
Opaque container for suspended stopwatches that is used to transport them across async boundaries.
|
static class |
Timekeeper.Stopwatches$
Opaque container for suspended stopwatches that is used to transport them across async boundaries.
|
static class |
Timekeeper.StopwatchTimer
INTERNAL API
|
static class |
Timekeeper.StopwatchTimer$ |
static class |
Timekeeper.SuspendedStopwatch
INTERNAL API
|
static class |
Timekeeper.SuspendedStopwatch$
INTERNAL API
|
| Constructor and Description |
|---|
Timekeeper(boolean recordActiveTime,
boolean isEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name) |
void |
add(java.lang.String name,
long startTime) |
void |
add(java.lang.String name,
long startTime,
boolean recordActiveTime) |
void |
add(java.lang.String name,
long startTime,
long sampling) |
void |
add(java.lang.String name,
long startTime,
long sampling,
boolean recordActiveTime) |
void |
addEmpty(java.lang.String name) |
protected scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> |
data() |
static scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> |
empty() |
Timekeeper.StopwatchTimer |
get(java.lang.String name,
boolean remove) |
scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> |
getAll() |
boolean |
isActive(java.lang.String name) |
boolean |
isEnabled() |
Timekeeper.Stopwatches |
mergeStopwatches(Timekeeper.Stopwatches first,
Timekeeper.Stopwatches second)
INTERNAL API
|
boolean |
recordActiveTime() |
Timekeeper.RemoteTimekeeper |
remote() |
void |
remove(java.lang.String name) |
void |
resumeEmptyStopwatches()
INTERNAL API
|
void |
resumeStopwatches(Timekeeper.Stopwatches suspended)
INTERNAL API
|
void |
resumeStopwatches(Timekeeper.Stopwatches suspended,
long resumeTime)
INTERNAL API
|
long |
startTime(java.lang.String name,
boolean remove) |
void |
stop(java.lang.String name)
Stop an active stopwatch with the specified name creating a user defined time interval.
|
void |
stop(java.lang.String name,
long stopTime) |
protected abstract void |
stopped(java.lang.String name,
long elapsed,
long active)
INTERNAL API
|
protected void |
stopped(java.lang.String name,
Timekeeper.StopwatchTimer stopwatch,
long stopTime)
INTERNAL API
|
Timekeeper.Stopwatches |
suspendStopwatches()
INTERNAL API
|
Timekeeper.Stopwatches |
suspendStopwatches(long suspendTime)
INTERNAL API
|
public static scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> empty()
public boolean recordActiveTime()
public boolean isEnabled()
public Timekeeper.RemoteTimekeeper remote()
protected final scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> data()
public void add(java.lang.String name)
add in class StopwatchBlockspublic void add(java.lang.String name,
long startTime)
public void add(java.lang.String name,
long startTime,
long sampling)
public void add(java.lang.String name,
long startTime,
boolean recordActiveTime)
public void add(java.lang.String name,
long startTime,
long sampling,
boolean recordActiveTime)
public void addEmpty(java.lang.String name)
public boolean isActive(java.lang.String name)
public scala.collection.immutable.Map<java.lang.String,Timekeeper.StopwatchTimer> getAll()
public Timekeeper.StopwatchTimer get(java.lang.String name, boolean remove)
public long startTime(java.lang.String name,
boolean remove)
public void stop(java.lang.String name)
Stopwatchname - name of the stopwatch to stoppublic void stop(java.lang.String name,
long stopTime)
public void remove(java.lang.String name)
remove in class StopwatchBlockspublic Timekeeper.Stopwatches suspendStopwatches()
Suspend the active stopwatches to transport them across an async boundary.
public Timekeeper.Stopwatches suspendStopwatches(long suspendTime)
Suspend the active stopwatches to transport them across an async boundary.
suspendTime - (undocumented)public void resumeStopwatches(Timekeeper.Stopwatches suspended)
Resume suspended stopwatches after an async boundary jump.
suspended - (undocumented)public void resumeStopwatches(Timekeeper.Stopwatches suspended, long resumeTime)
Resume suspended stopwatches after an async boundary jump.
suspended - (undocumented)resumeTime - (undocumented)public void resumeEmptyStopwatches()
Resume empty stopwatches after an async boundary jump.
public Timekeeper.Stopwatches mergeStopwatches(Timekeeper.Stopwatches first, Timekeeper.Stopwatches second)
Merge suspended stopwatches for context joining.
first - (undocumented)second - (undocumented)protected void stopped(java.lang.String name,
Timekeeper.StopwatchTimer stopwatch,
long stopTime)
A stopwatch stopped.
name - (undocumented)stopwatch - (undocumented)stopTime - (undocumented)protected abstract void stopped(java.lang.String name,
long elapsed,
long active)
A stopwatch stopped.
name - the name of the stopwatchelapsed - the recorded time for this stopwatch in nanosecondsactive - the recorded active time for this stopwatch in nanosecondsCinnamon API. Copyright (c) 2015–2021 Lightbend.