Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proctime.mat file not present #94

Open
CherukuriNaveen opened this issue Oct 12, 2020 · 2 comments
Open

proctime.mat file not present #94

CherukuriNaveen opened this issue Oct 12, 2020 · 2 comments

Comments

@CherukuriNaveen
Copy link

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

@michaelgruner
Copy link
Collaborator

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)

@CherukuriNaveen
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants