Skip to content

GstShark is a front-end for GStreamer traces

License

LGPL-2.1, GPL-2.0 licenses found

Licenses found

LGPL-2.1
COPYING.LESSER
GPL-2.0
COPYING
Notifications You must be signed in to change notification settings

cts-2019f-nnstreamer/gst-shark

 
 

Repository files navigation

Live Profiler for Gstreamer

Real-time profiler plugin for Gstreamer

Open Source License

  • GstShark

https://github.com/RidgeRun/gst-shark

  • For further information, visit GstShark wiki

https://developer.ridgerun.com/wiki/index.php?title=GstShark

  • plotly (for Log Visualizer)

https://plotly.com/

How To Install

  • On Ubuntu x64
$ sudo apt install gtk-doc-tools libgraphviz-dev libncurses5-dev libncursesw5-dev
$ ./autogen_ubuntux64.sh
$ make
$ sudo make install

For other environment, visit GstShark wiki

For contribution

Since gst-shark have gst-indent, you should run gst-indent before commit

common/gst-indent <file name>

How To Use Live Profiler

Set environment variable as below.

  • GST_DEBUG = "GST_TRACER:7"
  • GST_TRACERS = "live"
$ GST_DEBUG="GST_TRACER:7" GST_TRACERS="live"\
     gst-launch-1.0 videotestsrc ! videorate max-rate=15 ! fakesink

Log Visualizer

Requirement

  • python 3.x
  • plotly
  • numpy

Usage

If you want to record log, add LOG_ENABLED environment like below

$ GST_DEBUG="GST_TRACER:7" GST_TRACERS="live" LOG_ENABLED=TRUE\
     gst-launch-1.0 videotestsrc ! videorate max-rate=15 ! fakesink

You should know directory which have log (default path is /nnstreamer/bin/gstshark_<timestamp>)

python3 scripts/graphics/log_visualizer.py --dir=<log directory>

It will open 3 browsers.

Description

Each browser have Two graph and below one is Buffer Timeline graph. User can see which buffers each pad is handling at a specific time.

(1) CPU Usage

cpuusage

User can check CPU usage over time.

(2) Processing time

proctime

User can check processing time for each element.

(3) Buffer rate

bufrate

User can check buffer rate for each pad

About

GstShark is a front-end for GStreamer traces

Resources

License

LGPL-2.1, GPL-2.0 licenses found

Licenses found

LGPL-2.1
COPYING.LESSER
GPL-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.0%
  • Java 5.7%
  • MATLAB 5.5%
  • M4 4.7%
  • Makefile 3.0%
  • Objective-C 3.0%
  • Other 5.1%