Git Product home page Git Product logo

gst-shark's Introduction

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

gst-shark's People

Contributors

adriancervantes avatar akyeast avatar bill9889 avatar byungheecha avatar carlos-aguero avatar dgarbanzo avatar dwmarcuskim avatar eramirez392 avatar lleoncr avatar loganek avatar michaelgruner avatar mleivaf avatar rrcarlosrodriguez avatar spiraline avatar ysmjp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.