This procedure generates a report from data collected from
the profile command. profDataVar is the name of
the array containing the data returned by the
profile command. sortKey indicates
which data value to sort by. It should be one of
calls, cpu or real.
outFile is the name of file to write the report
to. If omitted, stdout is assumed. userTitle is
an optional title line to add to output.