Boxify superslab registry, add bench profile, and document C7 hotpath experiments
This commit is contained in:
@ -23,31 +23,19 @@ extern __thread TinyWarmPoolStats g_warm_pool_stats[TINY_NUM_CLASSES];
|
||||
// Record a warm pool hit
|
||||
// Called when warm_pool_pop() succeeds and carve produces blocks
|
||||
static inline void warm_pool_record_hit(int class_idx) {
|
||||
#if HAKMEM_DEBUG_COUNTERS
|
||||
g_warm_pool_stats[class_idx].hits++;
|
||||
#else
|
||||
(void)class_idx;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Record a warm pool miss
|
||||
// Called when warm_pool_pop() returns NULL (pool empty)
|
||||
static inline void warm_pool_record_miss(int class_idx) {
|
||||
#if HAKMEM_DEBUG_COUNTERS
|
||||
g_warm_pool_stats[class_idx].misses++;
|
||||
#else
|
||||
(void)class_idx;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Record a warm pool prefill event
|
||||
// Called when pool is empty and we do secondary prefill
|
||||
static inline void warm_pool_record_prefilled(int class_idx) {
|
||||
#if HAKMEM_DEBUG_COUNTERS
|
||||
g_warm_pool_stats[class_idx].prefilled++;
|
||||
#else
|
||||
(void)class_idx;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // HAK_WARM_POOL_STATS_BOX_H
|
||||
|
||||
Reference in New Issue
Block a user