Module compiled
Available on crate features
embed-profiles and std and ua only.Expand description
Precompiled profile sets: analyzed profiles in a compact binary form.
This is the form in which profiles are embedded. Loading decompresses and decodes the analysis computed at export time; nothing is reanalyzed or rehashed, so only data produced by Rama’s own export belongs in this format. Archives keep the evidence and are reanalyzed whenever they are loaded.
Only what selection and replay read is kept: scope totals and losses, and the samples HTTP/3 SETTINGS replay derives its generators from. Other per-value counters and samples stay in archives.
A value whose bytes already exist elsewhere in the set, such as a component capture also held by a joint capture, is stored once. Loaded values share those bytes instead of each owning a copy.
Constants§
- COMPILED_
PROFILE_ SET_ BYTES - Upper bound on a decoded profile set.
Functions§
- decode_
compiled_ profiles - Decode a precompiled profile set produced by
encode_compiled_profiles. - encode_
compiled_ profiles - Encode analyzed profiles, for example from
rama ua export --embed. - is_
compiled_ profile_ set - Whether
bytesstart like a precompiled profile set. - try_
load_ compiled_ profiles - Decode a precompiled profile set into emulation profiles.