Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ sum
Method
sum
cranelift/codegen/src/egraph/cost.rs:132–134 ·
view source on GitHub ↗
(iter: I)
Source
from the content-addressed store, hash-verified
130
131
impl core::iter::Sum<Cost> for Cost {
132
fn sum<I: Iterator<Item = Cost>>(iter: I) -> Self {
133
iter.fold(Self::zero(), |a, b| a + b)
134
}
135
}
136
137
impl core::default::Default for Cost {
Callers
15
simd_sum
Function · 0.80
stack_address
Method · 0.80
cf_weight
Method · 0.80
block_weight
Method · 0.80
inst_count
Function · 0.80
len
Method · 0.80
total
Method · 0.80
byte_size
Method · 0.80
fixed_stack_size
Method · 0.80
of_pure_op
Method · 0.80
measure_execution_time
Function · 0.80
test
Method · 0.80
Calls
1
zero
Function · 0.85
Tested by
2
test
Method · 0.64
test_pooling_allocator_striping
Function · 0.64