Skip to content

Commit

Permalink
Reduce memory usage limit in memory_usage_by_module function and impr…
Browse files Browse the repository at this point in the history
…ove code formatting across multiple functions
  • Loading branch information
DonnieBLT committed Jan 1, 2025
1 parent 4cf8c2d commit 7cd9347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# ----------------------------------------------------------------------------------


def memory_usage_by_module(limit=100):
def memory_usage_by_module(limit=20):
"""
Returns a list of (filename, size_in_bytes) for the top
`limit` files by allocated memory, using tracemalloc.
Expand Down Expand Up @@ -267,7 +267,7 @@ def check_status(request):
# Memory usage by module (via tracemalloc)
# -------------------------------------------------------
print("Calculating memory usage by module...")
top_modules = memory_usage_by_module(limit=100)
top_modules = memory_usage_by_module(limit=20)
status_data["memory_by_module"] = top_modules

# -------------------------------------------------------
Expand Down

0 comments on commit 7cd9347

Please sign in to comment.