3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-20 21:03:39 +00:00

add new API function Z3_get_estimated_alloc_size() that returns *estimated* allocated memory size by Z3

Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2016-02-01 17:19:55 +00:00
parent b9c0578eea
commit ea55bd495f
2 changed files with 11 additions and 0 deletions

View file

@ -130,4 +130,8 @@ extern "C" {
Z3_CATCH_RETURN(0.0); Z3_CATCH_RETURN(0.0);
} }
unsigned long long Z3_API Z3_get_estimated_alloc_size(void) {
return memory::get_allocation_size();
}
}; };

View file

@ -5967,6 +5967,13 @@ extern "C" {
*/ */
double Z3_API Z3_stats_get_double_value(Z3_context c, Z3_stats s, unsigned idx); double Z3_API Z3_stats_get_double_value(Z3_context c, Z3_stats s, unsigned idx);
/**
\brief Return the estimated allocated memory in bytes.
def_API('Z3_get_estimated_alloc_size', ULLONG, ())
*/
unsigned long long Z3_API Z3_get_estimated_alloc_size(void);
/*@}*/ /*@}*/
#ifdef __cplusplus #ifdef __cplusplus