Better output

This commit is contained in:
Màrius Montón 2021-11-08 09:24:57 +01:00
parent e9e4543f72
commit e22f321caf
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ Performance::Performance() {
}
void Performance::dump() const {
std::cout << "************************************" << std::endl;
std::cout << std::dec << "# data memory reads: " << data_memory_read
<< std::endl;
std::cout << "# data memory writes: " << data_memory_write << std::endl;
@ -36,6 +37,7 @@ void Performance::dump() const {
std::cout << "# registers write: " << register_write << std::endl;
std::cout << "# instructions executed: " << instructions_executed
<< std::endl;
std::cout << "************************************" << std::endl;
}
Performance *Performance::instance = nullptr;