Skip to content
v3.3.0

Statistics

Provides tracking performance statistics to the engine

end(name: StatType): void

Defined in src/statistics/Statistics.ts:59

Stops tracking particular statistic. Raise error if tracking statistic wasn’t started.

Parameters:

NameTypeDescription
nameStatTypestatistic to stop tracking

Returns: void


incrementCriterionFunctionFullCacheUsed(): void

Defined in src/statistics/Statistics.ts:18

Returns: void


incrementCriterionFunctionPartialCacheUsed

Section titled “incrementCriterionFunctionPartialCacheUsed”

incrementCriterionFunctionPartialCacheUsed(): void

Defined in src/statistics/Statistics.ts:24

Returns: void


measureT›(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(): 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/Statistics.ts:45

Starts tracking particular statistic.

Parameters:

NameTypeDescription
nameStatTypestatistic to start tracking

Returns: void