diff options
author | bd <bdunahu@operationnull.com> | 2025-03-10 22:07:36 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-10 22:07:36 -0400 |
commit | 85078b99e4cf652fcbd5f4d36b061674a2fe8aa6 (patch) | |
tree | 1e3097ec91c7fcd7fc9d00f912b46814900201f0 /src/storage/cache.cc | |
parent | 25d6d41af95cc2a2db3ba2651e5d784413c7058f (diff) |
overload << operator for dram
Diffstat (limited to 'src/storage/cache.cc')
-rw-r--r-- | src/storage/cache.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc index d382c3d..6dd0b8a 100644 --- a/src/storage/cache.cc +++ b/src/storage/cache.cc @@ -100,6 +100,7 @@ std::ostream &operator<<(std::ostream &os, const Cache &c) c.view(0, L1_CACHE_SIZE); std::array<std::array<int, 2>, L1_CACHE_SIZE> meta = c.get_meta(); + cout << data.capacity(); os << " " << std::setfill(' ') << std::setw(L1_CACHE_SPEC + 2) << "INDEX" << " | " << std::setfill(' ') << std::setw((8 + 3) * 4 - 1) << "DATA" << " | " << std::setfill(' ') |