You can clone with
Cannot retrieve contributors at this time
Event Time Charts visualize event logsEvent logs are a simple format for describing generic events, including startand end times, event names, and parent-child relationships. The canonicalexample is for process execution, tracing the creation of new processes, theirchild processes, and their duration.An event log has the following format: TIME(ns) EVENT ID ID_NAME PARENT_ID EXTRASFor example, the following shows a process log (generated using the includedprocevt.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 theexecution 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 = PPIDIt was executed and redirected to the log file using:# ./procevt.d > procevt_sample.txtAnd the event chart SVG (renamed to procevt_sample.svg) was generated using:$ ./evtchart.pl procevt_sample.txtThere are various tunables at the top of the evtchart.pl program to customizethe output.A PNG version of procevt_sample.svg has been included (converted using anexternal tool).Event charts can be used for other tasks, including function execution,provided that an evt log can be collected.