Skip to content

Commit

Permalink
Remove trim from malloc_stats #notests
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Oct 29, 2024
1 parent b1a02d7 commit 23b447c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bin/inbox-start.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,9 @@ class MallInfo(ctypes.Structure):
mallinfo.argtypes = []
mallinfo.restype = MallInfo

malloc_trim = libc.malloc_trim
malloc_trim.argtypes = [ctypes.c_size_t]
malloc_trim.restype = ctypes.c_int


def malloc_stats():
while True:
libc.malloc_trim(0)
libc.malloc_stats()
info = mallinfo()
fields = [(name, getattr(info, name)) for name, _ in info._fields_]
Expand Down

0 comments on commit 23b447c

Please sign in to comment.