Debug Counters Implementation - Clean History
Major Features: - Debug counter infrastructure for Refill Stage tracking - Free Pipeline counters (ss_local, ss_remote, tls_sll) - Diagnostic counters for early return analysis - Unified larson.sh benchmark runner with profiles - Phase 6-3 regression analysis documentation Bug Fixes: - Fix SuperSlab disabled by default (HAKMEM_TINY_USE_SUPERSLAB) - Fix profile variable naming consistency - Add .gitignore patterns for large files Performance: - Phase 6-3: 4.79 M ops/s (has OOM risk) - With SuperSlab: 3.13 M ops/s (+19% improvement) This is a clean repository without large log files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
18
core/hakmem_tiny_query_api.h
Normal file
18
core/hakmem_tiny_query_api.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef HAKMEM_TINY_QUERY_API_H
|
||||
#define HAKMEM_TINY_QUERY_API_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
// Phase 2B-1: Query API
|
||||
// Validation and introspection functions (cold path)
|
||||
|
||||
// Check if pointer is managed by Tiny allocator
|
||||
int hak_tiny_is_managed(void* ptr);
|
||||
|
||||
// Check if pointer is in SuperSlab region
|
||||
int hak_tiny_is_managed_superslab(void* ptr);
|
||||
|
||||
// Get usable size for allocation
|
||||
size_t hak_tiny_usable_size(void* ptr);
|
||||
|
||||
#endif // HAKMEM_TINY_QUERY_API_H
|
||||
Reference in New Issue
Block a user