wiki:Doc/compiler/scripts/BuildStats

PANC−BUILD−STATS

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
AUTHOR

NAME

panc-build-stats.pl − create a report of panc build statistics

SYNOPSIS

panc−build−stats.pl [−−help] {logfile}

DESCRIPTION

The panc−build−stats.pl script will analyze a panc log file and report build statistics. 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 extract the time required to execute, to set default values, to validate the configuration, to write the XML file, and to write a dependency file. It will also report the "build" time which is the time for executing, setting defaults, and validating an object file.

The analysis is written to the standard output, but may be saved in a file using standard IO stream redirection. The format of the file is appropriate for the R statistical analysis package, but should be trivial to import into excel or any other analysis package.

EXAMPLE

If the output from the command is written to the file build.txt, then the following R script will do a simple analysis of the results. This will provide statistical results on the various build phases and show histograms of the distributions.

# R−script for simple analysis of build report
bstats <−  read.table("build.txt")
attach(bstats)
summary(bstats)
hist(build, nclass=20)
hist(execute, nclass=20)
hist(execute, nclass=20)
hist(defaults, nclass=20)
hist(validation, nclass=20)
hist(xml, nclass=20)
hist(dep, nclass=20)
detach(bstats)

AUTHOR

Charles Loomis

Last modified 16 years ago Last modified on Oct 3, 2008, 4:09:04 PM