wiki:Doc/compiler/scripts/CompileStats

PANC−COMPILE−STATS

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
AUTHOR

NAME

panc-compile-stats.pl − create a report of panc compilation statistics

SYNOPSIS

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

DESCRIPTION

The panc−compile−stats.pl script will analyze a panc log file and report compilation 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 start time of each compilation and its duration. This compilation is the time to parse a template file and create the internal representation of the template. 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 compile.txt, then the following R script will create a "high−density" plot of the information. This graph shows a vertical line for each compilation, where the horizontal location is related to the start time and the height of the line the duration.

# R−script for simple analysis of compile report
cstats <−  read.table("compile.txt")
attach(cstats)
plot(start/1000, duration, type="h", xlab="time (s)", ylab="duration (ms)")
detach(cstats)

AUTHOR

Charles Loomis

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