RidgeRun / gst-shark

GstShark is a front-end for GStreamer traces
GNU Lesser General Public License v2.1
94 stars 45 forks source link

gstshark-plot does nothing for "proctime" tracer #42

Open j1elo opened 5 years ago

j1elo commented 5 years ago

Issue: According to the Processing Time tracer docs, the plotting tool gstshark-plot should have support for the proctime tracer, but it doesn't.

Following steps (extracted from the linked docs) don't generate any output:

# Ensure all dependencies are installed
sudo apt-get install graphviz octave epstool babeltrace

cd gst-shark/scripts/graphics/

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 "gstshark_2018-11-22_19:06:13" -s pdf

Expected output: A PDF file named tracer.pdf.

This also didn't work when trying with a persistent Octave session:

./gstshark-plot "gstshark_2018-11-22_19:06:13" -p

This opens Octave, but nothing is plotted. Octave's Command Window shows that all modules have been executed:

Processing proctime...
Processing interlatency...
Processing framerate...
Processing scheduling...
Processing cpusage...

>>

The file plot_proctime.m references another file, proctime.mat. But proctime.mat file does not exist.

rrcarlosrodriguez commented 5 years ago

Hi @j1elo,

Could you please give it a try to the latest changes added to Gst-Shark? We released a new version some days ago and the proctime tracer was tested. In the meantime I'm going to test your pipeline and see if I can reproduce your issue.

Additionally, what platform are you using? What gstreamer version?