mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
Add debug version to verify that correct build is used for testing
This commit is contained in:
parent
5e16662cd4
commit
94bdbe41bb
2 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
----------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Reference in a new issue