Skip to content

CostTrackerOptions

CostTrackerOptions configures runtime cost-tracker construction.

optional cost?: number

cost is the initial accumulated runtime cost.


optional estimator?: ActualCostEstimator

estimator provides application-specific runtime function costs.


optional limit?: number

limit is the runtime evaluation cost limit.


optional overloadTrackers?: Readonly<Record<string, FunctionTracker>>

overloadTrackers binds overload identifiers to versioned or optional runtime cost rules.


optional presenceTestHasCost?: boolean

presenceTestHasCost determines whether presence testing has a cost of one or zero.