EmptyStatistics
Do not store stats in the memory. Stats are not needed on daily basis
Methods
Section titled “Methods”▸ end(_name: StatType): void
Defined in src/statistics/EmptyStatistics.ts:27
inheritdoc
Parameters:
| Name | Type |
|---|---|
_name | StatType |
Returns: void
incrementCriterionFunctionFullCacheUsed
Section titled “incrementCriterionFunctionFullCacheUsed”▸ incrementCriterionFunctionFullCacheUsed(): void
Defined in src/statistics/EmptyStatistics.ts:12
inheritdoc
Returns: void
incrementCriterionFunctionPartialCacheUsed
Section titled “incrementCriterionFunctionPartialCacheUsed”▸ incrementCriterionFunctionPartialCacheUsed(): void
Defined in src/statistics/EmptyStatistics.ts:17
inheritdoc
Returns: void
measure
Section titled “measure”▸ measure‹T›(name: StatType, func: function): T
Defined in src/statistics/Statistics.ts:80
Measure given statistic as execution of given function.
Type parameters:
▪ T
Parameters:
▪ name: StatType
statistic to track
▪ func: function
function to call
▸ (): T
Returns: T
result of the function call
▸ reset(): void
Defined in src/statistics/Statistics.ts:33
Resets statistics
Returns: void
snapshot
Section titled “snapshot”▸ snapshot(): Map‹StatType, number›
Defined in src/statistics/Statistics.ts:90
Returns the snapshot of current results
Returns: Map‹StatType, number›
▸ start(_name: StatType): void
Defined in src/statistics/EmptyStatistics.ts:22
inheritdoc
Parameters:
| Name | Type |
|---|---|
_name | StatType |
Returns: void