configure: added --enable-fulldebug to enable extra/expensive debug code.

This is mostly to avoid the allocation required by the externalization of the
transaction dictionary, which in some cases is huge.

This should reduce the massive memory usage required to inspect the externalized
dictionary.
This commit is contained in:
Juan RP
2015-05-28 11:02:40 +02:00
parent c464874c1e
commit b2dd18faba
3 changed files with 17 additions and 0 deletions

View File

@ -339,9 +339,11 @@ exec_transaction(struct xbps_handle *xhp, int maxcols, bool yes, bool drun)
}
goto out;
}
#ifdef FULL_DEBUG
xbps_dbg_printf(xhp, "Dictionary before transaction happens:\n");
xbps_dbg_printf_append(xhp, "%s",
xbps_dictionary_externalize(xhp->transd));
#endif
trans->xhp = xhp;
trans->d = xhp->transd;