Skip to main content

Module cost_profile

Module cost_profile 

Source
Expand description

Canonical storage-profile to cost-model mapping.

Both the embedded constructors and the network server resolve a StorageCostProfile first and then map the resolved preset onto a CostModelConfig. The mapping lives here exactly once so the two assembly paths cannot drift apart.

Functionsยง

cost_config_for_profile
Map an already-resolved storage profile onto its cost preset.
resolve_space_cost_configs
Resolve every per-space profile override with runtime knowledge.