Package org.microproxy
Class ScriptUsage
java.lang.Object
org.microproxy.ScriptUsage
What the calls into scripts for one exchange added up to, as
FlowContext.scriptStats()
gives it: how many calls, how long they took, how many interpreter steps they ran and about how
many bytes of values they created (an estimate of what was made, not of what stayed in memory).
The calls of an exchange may come from several threads (a tunnel's two directions), so the
totals are added to without a lock; read together they may be a call apart.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScriptUsageThe totals of an exchange no script was called for: all zero, and never added to. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns about how many bytes of values the calls created, together.longcalls()Returns the number of calls into scripts.longnanos()Returns the nanoseconds the calls took, together.longsteps()Returns the interpreter steps the calls ran, together.toString()
-
Field Details
-
NONE
The totals of an exchange no script was called for: all zero, and never added to.
-
-
Method Details
-
calls
public long calls()Returns the number of calls into scripts.- Returns:
- the number of calls into scripts
-
nanos
public long nanos()Returns the nanoseconds the calls took, together.- Returns:
- the nanoseconds the calls took, together
-
steps
public long steps()Returns the interpreter steps the calls ran, together.- Returns:
- the interpreter steps the calls ran, together
-
allocBytes
public long allocBytes()Returns about how many bytes of values the calls created, together.- Returns:
- about how many bytes of values the calls created, together
-
toString
-