Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jun 18, 2021
1 parent 33c289b commit d8b04e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/util/caches/lrucache.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ def __init__(
self.memory = (
_get_size_of(key)
+ _get_size_of(value)
+ _get_size_of(self.list_node, recurse=False)
+ _get_size_of(self.global_list_node, recurse=False)
+ _get_size_of(self.callbacks, recurse=False)
+ _get_size_of(self, recurse=False)
)
Expand Down

0 comments on commit d8b04e8

Please sign in to comment.