MCPcopy Create free account
hub / github.com/argumentcomputer/ix / retained_elems

Method retained_elems

crates/aiur/src/querymap.rs:77–79  ·  view source on GitHub ↗

Total retained field elements (keys + outputs); used by the `IX_AIUR_QUERY_STATS` RAM-attribution dump.

(&self)

Source from the content-addressed store, hash-verified

75 libc::PROT_READ | libc::PROT_WRITE,
76 libc::MAP_PRIVATE | libc::MAP_ANONYMOUS,
77 -1,
78 0,
79 );
80 assert!(p != libc::MAP_FAILED, "HugeVec mmap failed");
81 // Advisory only: failure (old kernel, THP disabled) is harmless.
82 libc::madvise(p, bytes, libc::MADV_HUGEPAGE);

Callers 1

dump_query_statsFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected