0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

modules/console: Add stack incore usage to ctx list output.

This commit is contained in:
Jason Volk 2021-02-04 19:50:43 -08:00
parent 7d7846c57a
commit 52ce2bdad8

View file

@ -2880,6 +2880,9 @@ console_cmd__ctx__list(opt &out, const string_view &line)
<< "PEAK OBSERVED"
<< " "
<< std::setw(25)
<< "IN CORE"
<< " "
<< std::setw(25)
<< "LIMIT"
<< " "
<< std::setw(6)
@ -2933,6 +2936,9 @@ console_cmd__ctx__list(opt &out, const string_view &line)
out << " "
<< std::setw(25) << std::right << pretty(pbuf, iec(ctx::stack::get(ctx).peak));
out << " "
<< std::setw(25) << std::right << pretty(pbuf, iec(allocator::incore(ctx::stack::get(ctx).buf)));
out << " "
<< std::setw(25) << std::right << pretty(pbuf, iec(ctx::stack::get(ctx).max));