0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

modules/console: Consume fewer output lines for vm summary related.

This commit is contained in:
Jason Volk 2020-05-30 03:47:56 -07:00
parent 3c137215f3
commit 4843fbf62e

View file

@ -14900,45 +14900,6 @@ console_cmd__file__download(opt &out, const string_view &line)
bool
console_cmd__vm(opt &out, const string_view &line)
{
out << "sequence retired: "
<< std::right << std::setw(10) << m::vm::sequence::retired
<< std::endl;
out << "sequence committed: "
<< std::right << std::setw(10) << m::vm::sequence::committed
<< std::endl;
out << "sequence uncommit: "
<< std::right << std::setw(10) << m::vm::sequence::uncommitted
<< std::endl;
out << "sequence pending: "
<< std::right << std::setw(10) << m::vm::sequence::pending
<< std::endl;
out << "sequence min:max: "
<< std::right << std::setw(10) << m::vm::sequence::min() << ' '
<< std::right << std::setw(10) << m::vm::sequence::max()
<< std::endl;
out << "eval counter: "
<< std::right << std::setw(10) << m::vm::eval::id_ctr
<< std::endl;
out << "eval instances: "
<< std::right << std::setw(10) << size(m::vm::eval::list)
<< std::endl;
out << "eval executing: "
<< std::right << std::setw(10) << m::vm::eval::executing
<< std::endl;
out << "eval injecting: "
<< std::right << std::setw(10) << m::vm::eval::injecting
<< std::endl;
out << std::endl;
out
<< std::right << std::setw(8) << "ID" << " "
<< std::right << std::setw(4) << "CTX" << " "
@ -14997,6 +14958,24 @@ console_cmd__vm(opt &out, const string_view &line)
;
}
out << std::endl;
out << " retired " << std::left << std::setw(10) << m::vm::sequence::retired;
out << " committed " << std::left << std::setw(10) << m::vm::sequence::committed;
out << " uncommit " << std::left << std::setw(10) << m::vm::sequence::uncommitted;
out << std::endl;
out << " pending " << std::left << std::setw(10) << m::vm::sequence::pending;
out << " evals " << std::left << std::setw(10) << m::vm::eval::id_ctr;
out << " spread " << std::left << std::setw(10) << m::vm::sequence::min()
<< ' ' << std::left << std::setw(10) << m::vm::sequence::max();
out << std::endl;
out << " inst " << std::left << std::setw(10) << size(m::vm::eval::list);
out << " exec " << std::left << std::setw(10) << m::vm::eval::executing;
out << " inject " << std::left << std::setw(10) << m::vm::eval::injecting;
out << std::endl;
return true;
}