GNOME Bugzilla – Bug 736402
debug logging: Print the GstTask name as well as the thread pointer in the debugs
Last modified: 2018-11-03 12:22:31 UTC
Currently the debug looks like: 0:00:00.487023893 31989 0x1294590 DEBUG category ... where 0x1294590 is the thread as return by g_thread_self. It would be pretty useful to use the name of the GstTask associated when there is one, leading to something like: 0:00:00.487023893 31989 videotestsrc0:src_0x1294590 DEBUG category ... What do you think?
I think it would be nice, but I'm not sure if we should put it into the debug log additionally (that's another 18 columns basically), or perhaps we should just put the thread-id <-> name mapping into the debug log with a special identifier for tools like gst-debug-viewer to pick up, and then let gst-debug-viewer show the name instead of the thread ID? Might also be quite expensive to retrieve the name/task, possibly involving global locks.
That's nice but it would break tools that parse debug logs :)
(In reply to comment #2) > That's nice but it would break tools that parse debug logs :) 1- I am not sure why, just that the Thread ID field would be longer but I guess the scripts would not care 2- Is our debug logging format supposed to be stable at all?
It's not defined to be stable but people use it like that already since a long time
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/74.