wiki:Doc/compiler/scripts/Threads

PANC−THREADS.PL

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
AUTHOR

NAME

panc-threads.pl − create a report of thread activity

SYNOPSIS

panc−threads.pl [−−help] {logfile}

DESCRIPTION

The panc−threads.pl script will analyze a panc log file and report on build activity per thread. The script takes the name of the log file as its only argument. If no argument is given or the −−help option is used, a short usage message is printed. The log file must have been created with "task" logging enabled.

The script will give the start time of build activity on any particular thread and the ending time. This can be used to understand the build and thread activity in a particular compilation. The times are given in milliseconds relative to the first entry in the log file.

EXAMPLE

If the output from the command is written to the file thread.txt, then the following R script will create a plot showing the duration of the activity on each thread.

# R−script for simple analysis of thread report
tstats <−  read.table("threads.txt")
attach(tstats)
plot(stop/1000,thread, type="n", xlab="time (s)", ylab="thread ID")
segments(start/1000, thread, stop/1000, thread)
detach(tstats)

AUTHOR

Charles Loomis

Last modified 16 years ago Last modified on Oct 3, 2008, 4:17:15 PM