Performance profiling Django Channels async consumers

71 views
Skip to first unread message

Filbert

unread,
Nov 27, 2023, 11:29:37 AM11/27/23
to Django users
We are heavily using Django Channels async consumers and haven't found a way instrument for performance profiling.

We've tried NewRelic, but per their developers say they don't have support for Django Channels.

We run certain websocket connections through Gunicorn, Uvicorn, Channels-Async and are looking for anyway to instrument the code to get a better analysis of what code is hogging the event loop.

Advice appreciated.

Filbert

unread,
Nov 28, 2023, 10:25:39 AM11/28/23
to Django users
crickets...sigh...

Shaheed Haque

unread,
Nov 28, 2023, 1:03:16 PM11/28/23
to django...@googlegroups.com


On Tue, 28 Nov 2023, 15:26 Filbert, <tim...@gmail.com> wrote:
crickets...sigh...

Is your question is more about profiling Python (async) code than anything specifically to do with Django? 

If so, then obviously Google is likely a good place to start. 

If not, and your issue is more about support for async from tools like the Django Debug Toolbar, it might be worth being explicit about that. 

(FWIW, we faced a similar issue with trying to analyse db usage from Celery, and ended up brewing some custom tooling loosely based on the Django Debug Toolbar output). 




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9e05ae10-ca38-4853-b875-d4594bda394en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages