MCPcopy
hub / github.com/celery/celery / sample_mem

Function sample_mem

celery/utils/debug.py:63–70  ·  view source on GitHub ↗

Sample RSS memory usage. Statistics can then be output by calling :func:`memdump`.

()

Source from the content-addressed store, hash-verified

61
62
63def sample_mem():
64 """Sample RSS memory usage.
65
66 Statistics can then be output by calling :func:`memdump`.
67 """
68 current_rss = mem_rss()
69 _mem_sample.append(current_rss)
70 return current_rss
71
72
73def _memdump(samples=10): # pragma: no cover

Callers 2

task_readyFunction · 0.90
memsampleFunction · 0.90

Calls 1

mem_rssFunction · 0.85

Tested by

no test coverage detected