Section: User Commands (1)
Updated: 18 April 1992Index
Return to Main Contents
hp2ps - convert a heap profile to a POST
converts a heap profile stored in
into a POST
graph, sending the result to
By convention, files to be processed by
extension. However, for compatibility with older versions of
this extension can be omitted. If
is omitted entirely, then the program behaves as a filter.
The flags are:
In order to make graphs more readable,
sorts the shaded bands for each identifier. The default sort ordering is for
the bands with the largest area to be stacked on top of the smaller ones.
option causes rougher bands (those reprsenting series of values with the
largest standard deviations) to be stacked on top of smoother ones.
puts the title of the graph in a small box at the top of the page. However,
if the JOB string is too long to fit in a small box (more than 35 characters),
will choose to use a big box instead. The
to use a big box.
- -e float[in|mm|pt]
Generate encapsulated POSTSCRIPT suitable for inclusion in LaTeX documents.
Usually, the POSTSCRIPT graph is drawn in landscape mode in an area
9 inches wide by 6 inches high, and
arranges for this area to be approximately centered on a sheet of a4
paper. This format is convenient of studying the graph in detail, but
it is unsuitable for inclusion in LaTeX documents. The
option causes the graph to be drawn in portrait mode, with
specifying the width in inches, millimetres or points (the default).
The resulting POSTSCRIPT file conforms to the
Encapsulated Post Script
(EPS) convention, and it can be included in a LaTeX document using Rokicki's
requires the width to exceed 2 inches.
Create output suitable for the
POSTSCRIPT previewer (or similar). In this case the graph is printed in portrait
mode without scaling. The output is unsuitable for a laser printer.
Use previous parameters. By default, the POSTSCRIPT graph is automatically
scaled both horizontally and vertically so that it fills the page.
However, when preparing a seires of graphs for use in a presentation,
it is often useful to draw a new graph using the same scale, shading and
ordering as a previous one. The
flag causes the graph to be drawn using the parameters determined by
a previous run of
Use a small box for the title.
Draw the graph in the traditional York style, ignoring marks.
Print out usage information.
The format of a heap profile is best described by example:
JOB "a.out -p"
DATE "Fri Apr 17 11:43:45 1992"
(1), hbchp (1), lmlchp
C. Runciman and D. Wakeling,
Heap Profiling for Lazy Functional Languages, YCS-172, University of York, 1992
is a registered trademark of Adobe Systems Incorporated.
David Wakeling of the University of York.
- INPUT FORMAT
- SEE ALSO