-
Our Python application is deployed under uwsgi. However, uwsgi itself uses a native executable as its entry point, which memray cannot run directly. Is there any way to use memray in conjunction with uwsgi? I have full control over the application code and the uwsgi configuration. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not terribly familiar with uWSGI, but it should be possible to use the Memray API even with uWSGI. I think if you were to use uWSGI hooks, it ought to be possible to create a Memray |
Beta Was this translation helpful? Give feedback.
-
@zr40 did you found a way to use |
Beta Was this translation helpful? Give feedback.
I'm not terribly familiar with uWSGI, but it should be possible to use the Memray API even with uWSGI. I think if you were to use uWSGI hooks, it ought to be possible to create a Memray
Tracker
and call its__enter__
with anaccepting-once
hook, which should be able to get you an output file for that worker process.