Add "qmemory" command (#553)

* Add qmemory command

* Update README, add test

* Redesign qmemory

* Add optional argument to show each worker's memory usage

* Add --workers argument to test_qmemory
This commit is contained in:
Kenny Heinonen
2021-05-14 13:44:40 +02:00
committed by GitHub
parent 957f807598
commit 728a1b85d0
4 changed files with 201 additions and 0 deletions
+6
View File
@@ -17,3 +17,9 @@ def test_qinfo():
call_command('qinfo')
call_command('qinfo', config=True)
call_command('qinfo', ids=True)
@pytest.mark.django_db
def test_qmemory():
call_command('qmemory', run_once=True)
call_command('qmemory', workers=True, run_once=True)