mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +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:
parent
b9c0578eea
commit
ea55bd495f
|
@ -130,4 +130,8 @@ extern "C" {
|
|||
Z3_CATCH_RETURN(0.0);
|
||||
}
|
||||
|
||||
unsigned long long Z3_API Z3_get_estimated_alloc_size(void) {
|
||||
return memory::get_allocation_size();
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -5967,6 +5967,13 @@ extern "C" {
|
|||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue