MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / byte_size

Method byte_size

cranelift/codegen/src/ir/constant.rs:267–269  ·  view source on GitHub ↗

Return the combined size of all of the constant values in the pool.

(&self)

Source from the content-addressed store, hash-verified

265
266 /// Return the combined size of all of the constant values in the pool.
267 pub fn byte_size(&self) -> usize {
268 self.handles_to_values.values().map(|c| c.len()).sum()
269 }
270}
271
272#[cfg(test)]

Callers

nothing calls this directly

Calls 4

sumMethod · 0.80
mapMethod · 0.45
valuesMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected