gst-shark icon indicating copy to clipboard operation
gst-shark copied to clipboard

proctime.mat file not present

Open CherukuriNaveen opened this issue 5 years ago • 2 comments
trafficstars

Dear Ridgerun team,

I am trying to do plotting using gst-shark with commands mentioned (https://developer.ridgerun.com/wiki/index.php?title=GstShark_-_Processing_Time_tracer) GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 videotestsrc ! identity sleep-time=8500 ! tee name=t t. ! queue ! identity sleep-time=50000 ! fakesink t. ! queue ! identity sleep-time=30000 ! fakesink

However, I am unable to find proctime.mat in created gst-shark folder

Best Regards, Naveen

CherukuriNaveen avatar Oct 12 '20 12:10 CherukuriNaveen

Hello @CherukuriNaveen. Checking the wiki, I can see that it is not clear. I have updated the page.

Here's the same info for your convenience:

The plot can be generated using:

cd gst-shark/scripts/graphics

# Display the plot on the screeon
./gstshark-plot gstshark_2020-10-16_09\:17\:18/ -p

# Save the plot to a PDF 
./gstshark-plot gstshark_2020-10-16_09\:17\:18/ -s pdf

# Save the plot to a PNG
./gstshark-plot gstshark_2020-10-16_09\:17\:18/ -s png

More advanced plots can be made by manipulating data in GNU/Octave directly. To do so you may access the tracer object. For example, the plot above can be manually generated by running:

octave> plot (tracer.proctime.timestamp_mat', tracer.proctime.time_mat')
octave> legend(tracer.proctime.element_name_list)

michaelgruner avatar Oct 16 '20 17:10 michaelgruner

Hello @michaelgruner

Thanks for your response.

I used below steps to generate plot: GST_DEBUG="GST_TRACER:7" GST_TRACERS="proctime" gst-launch-1.0 videotestsrc ! identity sleep-time=8500 ! tee name=t t. ! queue ! identity sleep-time=50000 ! fakesink t. ! queue ! identity sleep-time=30000 ! fakesink ./gstshark-plot /tmp/gstshark_2020-10-22_14:54:57 -s png

/tmp/gstshark_2020-10-22_14:54:57 contains below files up trace generation:

  • datastream
  • metadata

I got proctime.png as shown below: image

As per my understanding, the X-axis values are not proper. Could you please help to get proper values on X-axis.

Best Regards, Naveen.

CherukuriNaveen avatar Oct 22 '20 04:10 CherukuriNaveen