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

Method add

crates/wasi-http/src/handler.rs:546–548  ·  view source on GitHub ↗
(&mut self, time: Instant)

Source from the content-addressed store, hash-verified

544
545impl StartTimes {
546 fn add(&mut self, time: Instant) {
547 *self.0.entry(time).or_insert(0) += 1;
548 }
549
550 fn remove(&mut self, time: Instant) {
551 let Entry::Occupied(mut entry) = self.0.entry(time) else {

Callers 15

write_bytesFunction · 0.45
write_byteFunction · 0.45
args_getMethod · 0.45
environ_getMethod · 0.45
readyMethod · 0.45
fd_readdirMethod · 0.45
open_preopensMethod · 0.45
get_preopen_pathMethod · 0.45
allocMethod · 0.45
align_toMethod · 0.45
args_getFunction · 0.45
environ_getFunction · 0.45

Calls 2

or_insertMethod · 0.80
entryMethod · 0.45

Tested by

no test coverage detected