server.tracker

Classes

ResourceTracker

An object to track memory and other resources during development.

Functions

current_memory_usage(→ int)

Module Contents

server.tracker.current_memory_usage() int[source]
class server.tracker.ResourceTracker(enable_tracemalloc: bool)[source]

An object to track memory and other resources during development.

tracking_tools = ('tracemalloc.py', 'linecache.py', 'objgraph.py', 'server/tracker.py')[source]
memory_snapshots: collections.deque[int][source]
non_monotonic: set[str][source]
tracebacks: dict[str, tuple[int, int]][source]
enable_tracemalloc[source]
started = False[source]
start() None[source]
property memory_snapshots_count: int[source]
property memory_usage: int[source]
property memory_usage_delta: int[source]
track() None[source]
track_memory() None[source]
condense_name(name: str) str[source]
track_tracemalloc() None[source]
show_memory_usage() None[source]
show_monotonically_increasing_traces() None[source]