Search
Preparing search index...
The search index is not available
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
fm
icelink
DiagnosticSampler
Class DiagnosticSampler
A record that calculates the min, max, and average from integer samples.
Hierarchy
DiagnosticSampler
Index
Constructors
constructor
Properties
__array
Pointer
__count
__max
__min
__samples
_last
Value
Methods
add
Sample
get
Average
get
Count
get
Last
Value
get
Max
get
Min
get
Samples
InAverage
get
Type
String
set
Last
Value
Constructors
constructor
new
Diagnostic
Sampler
(
)
:
DiagnosticSampler
new
Diagnostic
Sampler
(
averageSampleCount
:
number
)
:
DiagnosticSampler
Creates a new instance of the DiagnosticRecord.
Returns
DiagnosticSampler
Creates a new instance of the DiagnosticRecord.
Parameters
averageSampleCount:
number
How many samples to include in the average.
Returns
DiagnosticSampler
Properties
Private
__array
Pointer
__array
Pointer
:
AtomicInteger
internal
Private
__count
__count
:
AtomicLong
internal
Private
__max
__max
:
AtomicLong
internal
Private
__min
__min
:
AtomicLong
internal
Private
__samples
__samples
:
number
[]
internal
Private
_last
Value
_last
Value
:
number
internal
Methods
add
Sample
add
Sample
(
longSample
:
number
)
:
void
Adds a new sample to the calculation.
Parameters
longSample:
number
The sample to add.
Returns
void
get
Average
get
Average
(
)
:
number
Gets the average of all samples.
Returns
number
get
Count
get
Count
(
)
:
number
Gets how many samples this record has used.
Returns
number
get
Last
Value
get
Last
Value
(
)
:
number
Gets the value of the last sample recorded.
Returns
number
get
Max
get
Max
(
)
:
number
Gets the maximum sample ever recorded.
Returns
number
get
Min
get
Min
(
)
:
number
Gets the minimum sample ever recorded.
Returns
number
get
Samples
InAverage
get
Samples
InAverage
(
)
:
number
Gets how many samples are included in the average.
Returns
number
get
Type
String
get
Type
String
(
)
:
string
Returns
string
Private
set
Last
Value
set
Last
Value
(
value
:
number
)
:
void
internal
Parameters
value:
number
Returns
void
Diagnostic
Sampler
constructor
__array
Pointer
__count
__max
__min
__samples
_last
Value
add
Sample
get
Average
get
Count
get
Last
Value
get
Max
get
Min
get
Samples
InAverage
get
Type
String
set
Last
Value