Skip to content

A utility to track and graph throughput in a Flow workflow to help optimize performance

License

Notifications You must be signed in to change notification settings

lukegalea/flow_viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlowViz

A utility to track and graph throughput in a Flow workflow to help optimize performance.

Just annotate your Flow with checkpoints and watch the graphs flow in!

screenshot

Inspired by http://teamon.eu/2016/measuring-visualizing-genstage-flow-with-gnuplot/

Requirements

Ensure that gnuplot is installed and x11 and wxt terminal are available.

On ubuntu:

sudo apt-get install gnuplot-x11

and make sure you've got x11 going and DISPLAY is set.

Usage

FlowViz.start_link([:links_parsed, :url_checked])
FlowViz.plot()

Flow.from_enumerable(...)
  |> FlowViz.checkpoint(:links_parsed)
  |> Flow.map(...)
  |> Flow.partition
  |> FlowViz.checkpoint(:url_checked)

FlowViz.done()

Installation

This package can be installed by adding flow_viz to your list of dependencies in mix.exs:

def deps do
  [
    {:flow_viz, "~> 0.1.0"}
  ]
end

Docs can be found at https://hexdocs.pm/flow_viz.

About

A utility to track and graph throughput in a Flow workflow to help optimize performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages