diff --git a/include/mimalloc.h b/include/mimalloc.h index dfbe7ac2..7319f06d 100644 --- a/include/mimalloc.h +++ b/include/mimalloc.h @@ -385,6 +385,8 @@ mi_decl_export bool mi_get_segment_stats(size_t* abandoned, size_t* reclaimed, s mi_allocation_counter_t* free_space_in_segments, int free_space_in_segments_count, mi_allocation_counter_t* allocated_memory, int allocated_memory_count); +mi_decl_export size_t mi_get_debug_stat_version(); + // ------------------------------------------------------------------------------------------------------- // "mi" prefixed implementations of various posix, Unix, Windows, and C++ allocation functions. diff --git a/src/stats.c b/src/stats.c index d8b353ea..db85a671 100644 --- a/src/stats.c +++ b/src/stats.c @@ -221,6 +221,11 @@ bool mi_get_segment_stats(size_t* abandoned, size_t* reclaimed, size_t* reclaim_ return true; } +size_t mi_get_debug_stat_version() +{ + return 20250108; +} + /* ----------------------------------------------------------- Statistics operations ----------------------------------------------------------- */