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 | e8fbf581f70a899a26f71e4b2220dccd1b986ed8 (patch) | |
tree | 1e3097ec91c7fcd7fc9d00f912b46814900201f0 /src/storage/cache.cc | |
parent | af103123a90eaf34437b7979eee2579bab8b4b36 (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(' ') |