Git Product home page Git Product logo

evtchart's Introduction

Event Time Charts visualize event logs

Event logs are a simple format for describing generic events, including start
and end times, event names, and parent-child relationships.  The canonical
example is for process execution, tracing the creation of new processes, their
child processes, and their duration.

An event log has the following format:

	TIME(ns) EVENT ID ID_NAME PARENT_ID EXTRAS

For example, the following shows a process log (generated using the included
procevt.d DTrace script):

	TIME(ns) EVENT ID ID_NAME PARENT_ID EXTRAS
	93830738811087 start 66526 bash 93708
	93830740205965 change 66526 sleeptest.sh 93708
	93830741823055 change 66526 sleeptest.sh->ksh93 93708
	93830746023333 start 66527 ksh93 66526
	93830746221818 change 66527 sleep 66526
	93831749169097 end 66527 sleep 66526
	[...]

This full log is in the included procevt_sample.txt file.  This traces the
execution of the example sleeptest.sh script, also included.

The procevt.d script maps process events to event log fields using:

	EVENT = "start", for fork()
	EVENT = "change", for exec()
	EVENT = "end", for exit()
	ID = PID
	ID_NAME = execname
	PARENT_ID = PPID

It was executed and redirected to the log file using:

# ./procevt.d > procevt_sample.txt

And the event chart SVG (renamed to procevt_sample.svg) was generated using:

$ ./evtchart.pl procevt_sample.txt

There are various tunables at the top of the evtchart.pl program to customize
the output.

A PNG version of procevt_sample.svg has been included (converted using an
external tool).

Event charts can be used for other tasks, including function execution,
provided that an evt log can be collected.

evtchart's People

Watchers

 avatar  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.