Template Function sequant::log::bytes(CacheManager<N, F> const&, Ts const&…)¶
Defined in File eval.hpp
Function Documentation¶
-
template<typename N, bool F, typename ...Ts>
inline Bytes sequant::log::bytes(CacheManager<N, F> const &cache, Ts const&... args)¶ Cache-aware bytes(): bytes(cache) + bytes(args…), where bytes(cache) sums the (lazily memoized) sizes of the cache’s alive entries. This is the working-set/total walk used only to populate the trace’s hwmark/total fields, so it short-circuits to 0 when no trace line will be printed — avoiding the per-op walk of every alive entry, which with persistent entries is otherwise paid on every op of every iteration.