Skip to content

Commit 348e879

Browse files
committed
add more comments
1 parent aa8d470 commit 348e879

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/python/tests/memory/test_memory_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_memory_usage(self):
2929
def test_total_memory_usage(self):
3030
self._template(
3131
"test_total_memory_usage",
32-
expected_usage=(self.EXPECTED_LAST_ALLOCATION_SIZE << 1) - (self.PAGE_SIZE << 1),
33-
expected_usage_after_cleaning=self.EXPECTED_LAST_ALLOCATION_SIZE - (self.PAGE_SIZE << 1),
34-
expected_peak_usage=(self.EXPECTED_LAST_ALLOCATION_SIZE << 1) - (self.PAGE_SIZE << 1),
32+
expected_usage=(self.EXPECTED_LAST_ALLOCATION_SIZE << 1) - (self.PAGE_SIZE << 1), # 8192 + 16384 + ... + 2**20
33+
expected_usage_after_cleaning=self.EXPECTED_LAST_ALLOCATION_SIZE - (self.PAGE_SIZE << 1), # 8192 + 16384 + ... + 2**19
34+
expected_peak_usage=(self.EXPECTED_LAST_ALLOCATION_SIZE << 1) - (self.PAGE_SIZE << 1), # 8192 + 16384 + ... + 2**20
3535
)

0 commit comments

Comments
 (0)