# EmptyStatistics Class

Do not store stats in the memory. Stats are not needed on daily basis

# Methods

# end

▸ end(_name: StatType): void

Defined in src/statistics/EmptyStatistics.ts:27 (opens new window)

inheritdoc

Parameters:

Name Type
_name StatType

Returns: void


# incrementCriterionFunctionFullCacheUsed

▸ incrementCriterionFunctionFullCacheUsed(): void

Defined in src/statistics/EmptyStatistics.ts:12 (opens new window)

inheritdoc

Returns: void


# incrementCriterionFunctionPartialCacheUsed

▸ incrementCriterionFunctionPartialCacheUsed(): void

Defined in src/statistics/EmptyStatistics.ts:17 (opens new window)

inheritdoc

Returns: void


# measure

▸ measure‹T›(name: StatType, func: function): T

Defined in src/statistics/Statistics.ts:80 (opens new window)

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

▸ reset(): void

Defined in src/statistics/Statistics.ts:33 (opens new window)

Resets statistics

Returns: void


# snapshot

▸ snapshot(): Map‹StatType, number›

Defined in src/statistics/Statistics.ts:90 (opens new window)

Returns the snapshot of current results

Returns: Map‹StatType, number›


# start

▸ start(_name: StatType): void

Defined in src/statistics/EmptyStatistics.ts:22 (opens new window)

inheritdoc

Parameters:

Name Type
_name StatType

Returns: void