How can I profile a Django application while running on gunicorn using python cProfile.
I can profile in development mode:
python -m cProfile -o sample.profile manage.py runserver
But what should I do when it is running in production server using gunicorn?