iprofl.icn: Program to annotate source code with execution profile

procedure parse:           parse a profile line, failing on err
procedure nofile:          summarize a file not found
procedure listfile:        list a file with annotations
procedure showline:        show ticks and visits with one line
July 13, 2011; Gregg M. Townsend
This file is in the public domain.
Iprofl combines Icon execution profiling output (see icont(1))
with source code files to produce an annotated listing.

Usage:   iprofl [file]

Iprofl reads an execution profile from a named file or from
standard input if none is specified.  Source files referenced
in the profile file are listed with corresponding nonzero profile
counts (ticks and visits) prepended to the left of each line.

Tick counts are given as a one-to-three-digit "per mille" value
(like a baseball "percentage") of the total number of ticks seen.
A value of "0" indicates a very small number of ticks whereas
a blank field indicates no ticks at all.

Iprofl lists only files in the current directory.  Files named in
the profile file but not found are only summarized.  This is not
considered an error because it is typical for library files to be
included in the profile output.

Source code | Program Library Page | Icon Home Page