Statistics
Provides tracking performance statistics to the engine
Methods
Section titled “Methods”▸ end(name: StatType): void
Defined in src/statistics/Statistics.ts:59
Stops tracking particular statistic. Raise error if tracking statistic wasn’t started.
Parameters:
| Name | Type | Description |
|---|---|---|
name | StatType | statistic to stop tracking |
Returns: void
incrementCriterionFunctionFullCacheUsed
Section titled “incrementCriterionFunctionFullCacheUsed”▸ 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
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/Statistics.ts:45
Starts tracking particular statistic.
Parameters:
| Name | Type | Description |
|---|---|---|
name | StatType | statistic to start tracking |
Returns: void