<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks Stefan,<br> <br> You are right, I resolved the problem after I upgraded to python 2.7.<br><br> Besides, could you please tell me more about the statistics, such as: buffers 360 (ro 0,pre 0,dis 110,gap 0,dlt 0),<br>I do not quite understand things like ro, pre, dis, gap, dlt.<br><br>Thanks again!<br><br>Rafael<br><br>> Date: Wed, 11 May 2011 17:14:55 +0300<br>> From: ensonic@hora-obscura.de<br>> To: gstreamer-devel@lists.freedesktop.org<br>> Subject: Re: gst-tracelib usage<br>> <br>> On 11.05.2011 06:31, mingqian Han wrote:<br>> > Hi all,<br>> > I am now trying to use gst-tracelib to profile gstreamer performance<br>> > on TI Dm365.<br>> > After several trials, it works.<br>> > But I meet a problem with the log.<br>> > When I use ./gsttl_splitlog.py gsttl.log, it fails, saying :<br>> > AttributeError: 'str' object has no attribute 'partition'<br>> <br>> Your python seems a bit dated. This was added in python 2.5.<br>> http://docs.python.org/library/stdtypes.html#str.partition<br>> <br>> Copy the log from the device to your laptop and run gsttl_splitlog.py<br>> and other post-processing there. Its anyway a good idea to run only the<br>> capture on the device.<br>> <br>> Stefan<br>> <br>> ><br>> > my log file looks like:<br>> > get_caps 0:00:01.542899375 1.542899 0 v4l2source_src<br>> > mallinfo 0:00:01.542899375 1.542899 3796992 1261568 3765720 31272<br>> > mallinfo 0:00:01.612360084 1.612360 3932160 1261568 3776576 155584<br>> > get_caps 0:00:01.613437375 1.613437 1 videoinputfilter_sink<br>> > mallinfo 0:00:01.613437375 1.613437 3911680 1261568 3776840 134840<br>> > mallinfo 0:00:01.616136167 1.616136 3911680 1261568 3776904 134776<br>> > msg_structure-change 0:00:01.618435834 1.618436 0 v4l2source<br>> > mallinfo 0:00:01.618435834 1.618436 3911680 1261568 3766176 145504<br>> > mallinfo 0:00:01.620666834 1. 620667 3911680 1261568 3766200 145480<br>> > msg_structure-change 0:00:01.683715542 1.683716 0 v4l2source<br>> > mallinfo 0:00:01.683715542 1.683716 3911680 1261568 3766464 145216<br>> > mallinfo 0:00:01.686293168 1.686293 3911680 1261568 3765912 145768<br>> > get_caps 0:00:01.687726668 1.687727 2 videoinputfilter_src<br>> > mallinfo 0:00:01.687726668 1.687727 3911680 1261568 3766120 145560<br>> > mallinfo 0:00:01.764980293 1.764980 3911680 1261568 3766504 145176<br>> > get_caps 0:00:01.766166709 1.766167 3 videoaccel_sink<br>> > mallinfo 0:00:01.766166709 1.766167 3911680 1261568 3766744 144936<br>> > mallinfo 0:00:01.767746834 1.767747 3911680 1261568 3766808 144872<br>> > msg_structure-change 0:00:01.768862959 1.768863 2 videoinputfilter<br>> > mallinfo 0:00:01.768862959 1.768863 3911680 1261568 3766552 145128<br>> > mallinfo 0:00:01.770855251 1.770855 3911680 1261568 3766568 145112<br>> > msg_structure-change 0:00:01.847549875 1.847550 2 videoinputfilter<br>> > mallinfo 0:00:01.847549875 1.847550 3911680 1261568 3766832 14 4848<br>> > mallinfo 0:00:01.849411209 1.849411 3911680 1261568 3766288 145392<br>> > get_caps 0:00:01.850398709 1.850399 4 videoaccel_src<br>> ><br>> ><br>> > Besides, I need help on interpreting the statistics.<br>> > For example,<br>> > Pad Statistics:<br>> > > tivideorate0_src : buffers 360 (ro 0,pre 0,dis 110,gap 0,dlt 0),<br>> > size (min/avg/max) ......./ 829440/......., time 0:00:42.713248790,<br>> > bytes/sec 6990767.699925<br>> > < videoinputqueue_sink : buffers 0 (ro 0,pre 0,dis 0,gap 0,dlt 0),<br>> > size (min/avg/max) 4294967295/ 0/ 0, time 0:00:00.000000000, bytes/sec nan<br>> > < appsink_sink : buffers 0 (ro 0,pre 0,dis 0,gap 0,dlt 0), size<br>> > (min/avg/max) 4294967295/ 0/ 0, time 0:00:00.000000000, bytes/sec nan<br>> > > videoinputfilter_src : buffers 1110 (ro 1110,pre 0,dis 370,gap 0,dlt<br>> > 0), size (min/avg/max) ......./ 829440/......., time<br>> > 0:00:44.444906708, bytes/sec 20715048.544230<br>> > > ticlockoverlay_src : buffers 361 (ro 0,pre 0,dis 110,gap &nbs p;<br>> > 0,dlt 0), size (min/avg/max) ......./ 829440/......., time<br>> > 0:00:43.162948999, bytes/sec 6937149.730129<br>> > > titextoverlay_src : buffers 361 (ro 0,pre 0,dis 110,gap 0,dlt 0),<br>> > size (min/avg/max) ......./ 829440/......., time 0:00:43.104183585,<br>> > bytes/sec 6946607.384630<br>> > > videotee_src2 : buffers 361 (ro 0,pre 0,dis 110,gap 0,dlt 0), size<br>> > (min/avg/max) ......./ 829440/......., time 0:00:43.068566417,<br>> > bytes/sec 6952352.142416<br>> ><br>> > Element Statistics:<br>> > GstQueue:osdqueue ; : buffers in/out 362/ 361 bytes in/out 300257280/<br>> > 299427840 first activity 0:00:06.126533002, ev/msg/qry sent 6/ 7/ 0<br>> > GstTextOverlay:titextoverlay : buffers in/out 361/ 361 bytes in/out<br>> > 299427840/ 299427840 first activity 0:00:07.294452794, ev/msg/qry sent<br>> > 6/ 5/ 0<br>> > GstTee:videotee : buffers in/out 361/ ; 1081 bytes in/out 299427840/<br>> > 896624640 first activity 0:00:07.366531001, ev/msg/qry sent 6/ 9/ 0<br>> > GstGhostPad:sink : buffers in/out -/ 361 bytes in/out -/ 299427840<br>> > first activity 0:00:07.416145126, ev/msg/qry sent 0/ 0/ 0<br>> ><br>> > What do these different columns mean?<br>> ><br>> > Thanks in advance.<br>> ><br>> > Rafael<br>> ><br>> ><br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > gstreamer-devel@lists.freedesktop.org<br>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> <br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>                                            </body>
</html>