You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
memray attach is incredibly useful - but for multi-threaded applications, once you've determined that a particular thread is the source of a memory issue, figuring out which thread in the application corresponds to that "Thread X of Y" number displayed in the live view is challenging.
Describe the solution you'd like
Each thread has a string name - it would be very useful if the thread name was included alongside the "Thread X of Y" output in the live view.
Alternatives you considered
We can use py-spy to map thread numbers to thread names (I think?) but it would be much more convenient to have that information already available in memray
Thanks for building an amazing tool!
The text was updated successfully, but these errors were encountered:
We do have access to the name set through pthread_setname_np, but we don't have access to the name set using threading.Thread.name, and setting the name on a Python Thread object doesn't automatically cause pthread_setname_np to be called with the same name (or even a leading prefix of it).
That said, it would be interesting to try to collect the name attribute set on a threading.Thread... I wonder if we're able to...
Is there an existing proposal for this?
Is your feature request related to a problem?
memray attach is incredibly useful - but for multi-threaded applications, once you've determined that a particular thread is the source of a memory issue, figuring out which thread in the application corresponds to that "Thread X of Y" number displayed in the live view is challenging.
Describe the solution you'd like
Each thread has a string name - it would be very useful if the thread name was included alongside the "Thread X of Y" output in the live view.
Alternatives you considered
We can use py-spy to map thread numbers to thread names (I think?) but it would be much more convenient to have that information already available in memray
Thanks for building an amazing tool!
The text was updated successfully, but these errors were encountered: