CostTrackerOptions
CostTrackerOptions configures runtime cost-tracker construction.
Properties
Section titled “Properties”
optionalcost?:number
cost is the initial accumulated runtime cost.
estimator?
Section titled “estimator?”
optionalestimator?:ActualCostEstimator
estimator provides application-specific runtime function costs.
limit?
Section titled “limit?”
optionallimit?:number
limit is the runtime evaluation cost limit.
overloadTrackers?
Section titled “overloadTrackers?”
optionaloverloadTrackers?:Readonly<Record<string,FunctionTracker>>
overloadTrackers binds overload identifiers to versioned or optional runtime cost rules.
presenceTestHasCost?
Section titled “presenceTestHasCost?”
optionalpresenceTestHasCost?:boolean
presenceTestHasCost determines whether presence testing has a cost of one or zero.