struct rgpot::cache::EvalCounts

Overview

Evaluations a cache handle has answered, split by origin. More…

#include <PotentialCache.hpp>
 
struct EvalCounts {
    // fields
 
    uint64_t computed = 0;
    uint64_t served = 0;
};

Detailed Documentation

Evaluations a cache handle has answered, split by origin.

computed counts results the kernel produced while the cache was attached; served counts results returned from the cache without running the kernel. A caller that charges evaluations picks which field it bills, so two runs under different cache states stay comparable.

Fields

uint64_t computed = 0

Results produced by the kernel.

uint64_t served = 0

Results answered from the cache.