@inspect_command()
def memsample(state, **kwargs):
 from celery.utils.debug import sample_mem
 return sample_mem()

@ inspect_command ( ) def memsample ( state , ** kwargs ) : from celery . utils . debug import sample_mem return sample_mem ( )
sample current rss memory usage .