@eagleoutice/flowr - v2.15.8
    Preparing search index...

    Interface FlowrGasConfig

    Gas configuration embedded in FlowrConfig.gas. Each entry in features is a sensitivity factor for a named feature (see GasFeatureKey): 0/absent disables it at zero overhead, 1 is normal sensitivity, N divides each threshold by N.

    interface FlowrGasConfig {
        countedCheckEvery?: number;
        features: Record<string, number | undefined>;
        heapProvider?: () => GasHeapStatistics | undefined;
        thresholds: FlowrGasThresholds;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index
    countedCheckEvery?: number

    How many calls one accounting of an armed budget covers (default DefaultCountedCheckEvery). Trades how far a run may overshoot a bound against what the guard costs per node: 1 counts exactly, larger counts coarsely.

    features: Record<string, number | undefined>

    Per-feature sensitivity factors. Missing or 0 disables checking with zero overhead.

    heapProvider?: () => GasHeapStatistics | undefined

    Custom heap statistics source (programmatic configs only), overriding the built-in v8/performance.memory detection. Return undefined to skip the memory check.

    thresholds: FlowrGasThresholds

    Thresholds scaled by each feature factor before comparison, optionally bounded per feature (see GasThresholdSpec).