Giter Club home page Giter Club logo

tplot's Introduction

tplot

Tired of using watch for watching numbers in the terminal?
e.g watch "ls | wc -l"
Tired of calculating the decrease rate of items in queue over and over again?
Trends? Throughput? Time left to zero?

tplot is the answer!
alt text

tplot is a nodejs cli that reads other commands stdout (from stdin / self invoke) and plots it in the terminal!
In addition to the line chart you can see more stats about the series.

stats:

tplot is trying to guess the slope of the line using linear regression

name explain
Max Maximum point (since launch)
Min Minimum point (since launch)
Average Average value of all points
Points collected Amount of points collected (since launch)
Shape Linear / non-linear
Throughput If shape is linear presents the throughput based on line's slope
Time to ${program.goal} The approximate time remained to the gaol (defaults to 0)

Examples:

Read numbers from stdin

command | tplot

Run command periodically and plot the output

tplot -c 'echo $RANDOM'

Plot the number of files in the directory

plot -c 'ls|wc -l'

Plot redis list length

plot -c 'redis-cli llen events'

Usage:


  Usage: tplot [options]


  Options:

    -V, --version               output the version number
    -t, --title [title]         Set the title
    -c, --command [command]     Set command to watch and plot
    -i, --pollingInterval [n]   Set the polling interval for to command argument
    -p, --points [n]            Set the maximum number of points to show in the screen (default:100)
    -g, --goal [n]              If looking at an linear line, set the goal you wish the line will get (default:0)
    -r, --regressionPoints [n]  Set the numbers of points to collect in order to calculate the throughput (default:16)
    -h, --help                  output usage information

Installation:

via npm:
npm install -g tplot

via docker:

docker pull mosheza/tplot
docker run -it mosheza/tplot -c 'echo 1'

via source:

[email protected]:moshe/tplot.git
cd tplot
npm install --link

tplot's People

Contributors

talamuyal avatar nmeisels avatar

Watchers

James Cloos 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.