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