8000 GitHub - shwestrick/viz: SVG-based visualizer for parallel execution traces
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ viz Public

SVG-based visualizer for parallel execution traces

License

Notifications You must be signed in to change notification settings

shwestrick/viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viz

A simple visualizer for parallel execution traces, based on HTML and SVG. Written in Elm. It's a work-in-progress, but already somewhat usable.

Visualizer

Use it

  1. Install Elm
  2. Do make. This generates index.html.
  3. Open index.html in your browser.
  4. Click on the select file button at the top, and open a trace file (e.g. example-traces/small.txt).
  5. Use the up and down keys to zoom in and out, and left and right to navigate. Horizontal scrolling also works.
  6. Hover your mouse over an event to see information about that event at the bottom.

Trace Format

A trace file is a sequence of events, in no particular order, with one event on each line. An event is a comma-separated row with the following form:

<LABEL>[_ENTER|_LEAVE],<PROC>,<TIME>,<ARG1>,<ARG2>,<ARG3>
  • <LABEL> is the name of the event. Choose anything that is meaningful. There are two types of events:
    • Momentary events, which occur at some moment in time.
    • Duration events, which begin at some moment and end at another. These are identified by pairs of events whose labels end in _ENTER and _LEAVE. For each <LABEL>_ENTER, the next <LABEL>_LEAVE that appears on the same processor will be used as the end of that event.
  • <PROC> is a number (0 through N-1 for N processors) identifying the processor that logged the event.
  • <TIME> is the time the event occurs, in seconds. Times do not have to start at 0; everything will be listed relative to the earliest time that appears in the trace.
  • <ARG1>,<ARG2>, and <ARG3> can be anything useful that you would like to additionally include in the event.

About

SVG-based visualizer for parallel execution traces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0