mirror of
https://github.com/Z3Prover/z3
synced 2025-06-08 23:23:23 +00:00
adding rlimit resource limit facility to provide platform and architecture independent method for canceling activities
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ad16cc0ce2
commit
9b3e242990
26 changed files with 165 additions and 14 deletions
|
@ -236,3 +236,7 @@ void get_memory_statistics(statistics& st) {
|
|||
st.update("memory", static_cast<double>(mem)/100.0);
|
||||
st.update("num allocs", static_cast<double>(memory::get_allocation_count()));
|
||||
}
|
||||
|
||||
void get_rlimit_statistics(reslimit& l, statistics& st) {
|
||||
st.update("rlimit-count", l.count());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue