After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754496 - tracer: stats: log message structures
tracer: stats: log message structures
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-02 22:57 UTC by Thiago Sousa Santos
Modified: 2016-01-15 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracers: stats: add message structure to output (2.18 KB, patch)
2015-09-02 22:58 UTC, Thiago Sousa Santos
committed Details | Review

Description Thiago Sousa Santos 2015-09-02 22:57:57 UTC
The message is being logged only with the name, having the structure makes it possible to properly get the information about the message.

The structure was named 'details' but perhaps someone has a better suggestion?
Comment 1 Thiago Sousa Santos 2015-09-02 22:58:21 UTC
Created attachment 310556 [details] [review]
tracers: stats: add message structure to output

The name of the message is not enough. For example, state-change
is not enough to know the transition.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2015-10-05 19:04:44 UTC
Review of attachment 310556 [details] [review]:

::: plugins/tracers/gststats.c
@@ +601,3 @@
           "flags", G_TYPE_STRING, "",  /* TODO: use gflags */ 
           NULL),
+      "structure", GST_TYPE_STRUCTURE, gst_structure_new ("structure",

"structure" should be "details", right?
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2015-10-05 19:32:44 UTC
Tracer is merged. Go ahead an push the change (with the little detail updated).
Comment 4 Thiago Sousa Santos 2015-10-05 22:44:05 UTC
Ended up using 'structure' for the name because it is what is used in all other hooks. Changed 'details' on the code to 'structure'.

commit 7c5f7173c87b56662801b38a8512c7a4250e644d
Author: Thiago Santos <thiagoss@osg.samsung.com>
Date:   Tue Sep 1 16:39:30 2015 -0300

    tracers: stats: add message structure to output
    
    The name of the message is not enough. For example, state-change
    is not enough to know the transition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754496
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2016-01-10 13:22:17 UTC
Should we also do this for queries and events? 

Also, the gststats.c does actually not use this yet (remember that the idea this there there is a pair of tracer and analysis tool).

Only the log tracer is meant to just dump raw details.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2016-01-10 13:25:36 UTC
I had also asked to to call this details, right?
Comment 7 Thiago Sousa Santos 2016-01-15 11:30:02 UTC
(In reply to Stefan Sauer (gstreamer, gtkdoc dev) from comment #6)
> I had also asked to to call this details, right?

Yes, it was named structure because it was done so in other places.