xo-gc: in verify report memory ranges for gc space when debug on
This commit is contained in:
parent
0000a1d2f2
commit
9d419aa6bb
1 changed files with 12 additions and 0 deletions
|
|
@ -524,6 +524,18 @@ namespace xo {
|
|||
|
||||
//auto t0 = std::chrono::steady_clock::now();
|
||||
|
||||
log && log("memory");
|
||||
auto visitor = [&log](const MemorySizeInfo & info) {
|
||||
log && log(xtag("resource", info.resource_name_),
|
||||
xtag("used", info.used_),
|
||||
xtag("alloc", info.allocated_),
|
||||
xtag("commit", info.committed_),
|
||||
xtag("resv", info.reserved_),
|
||||
xtag("lo", info.lo_),
|
||||
xtag("hi", info.hi_));
|
||||
};
|
||||
this->visit_pools(visitor);
|
||||
|
||||
if (config_.sanitize_flag_) {
|
||||
log && log("step 0a : verify");
|
||||
this->verify_ok();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue