HP2PS(1)
π HP2PS(1) β bestie edition
okay so this is a General Commands Manual page, the star of the show being hp2ps. hi hello, welcome, sit down, we're converting heap profiles into POSTSCRIPT graphs and honestly it's giving main character energy. π
β¨ NAME β¨
hp2ps β convert a heap profile to a POSTSCRIPT graph π¦
πΈ SYNOPSIS πΈ
hp2ps [flags] [file][.hp]
π DESCRIPTION π
So like, hp2ps takes a heap profile that's chillin' inside file and turns it into a POSTSCRIPT graph, and it sends that graph straight to file.ps. iconic.
By convention, the files you feed to hp2ps have a .hp extension. but β and this is the lowkey important bit β for compatibility with older versions of hp2ps, you can totally omit that extension. no cap.
And if you just... don't give it a file at all? Then the program behaves as a filter. π«Ά
β¨ OPTIONS β¨
The flags are, in order, no skipping, every single one:
-dβ to make graphs more readable,hp2pssorts the shaded bands for each identifier. The default sort ordering stacks the bands with the largest area on top of the smaller ones. The-doption makes it so the rougher bands β the ones representing series of values with the largest standard deviations β get stacked on top of the smoother ones.-bβ normallyhp2psputs the title of the graph in a small box at the top of the page. however, if theJOBstring is too long to fit in a small box (more than 35 characters), thenhp2pswill choose to use a big box instead. The-boption forceshp2psto use a big box. periodt.-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, andhp2psarranges for this area to be approximately centered on a sheet of a4 paper. This format is convenient for studying the graph in detail, but it is unsuitable for inclusion in LaTeX documents. The-eoption causes the graph to be drawn in portrait mode, with float 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 dvi-to-POSTSCRIPT converterdvips.hp2psrequires the width to exceed 2 inches.-gβ create output suitable for thegsPOSTSCRIPT previewer (or similar). In this case the graph is printed in portrait mode without scaling. the output is unsuitable for a laser printer. noted.-pβ 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 series 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-pflag causes the graph to be drawn using the parameters determined by a previous run ofhp2pson file.-sβ use a small box for the title. π-yβ draw the graph in the traditional York style, ignoring marks. π-cβ use colours in the rendering of the graphs. π-?β print out usage information.
π¦ INPUT FORMAT π¦
The format of a heap profile is best described by example, so here it is, bestie, look at it:
JOB "a.out -p"
DATE "Fri Apr 17 11:43:45 1992"
SAMPLE_UNIT "seconds"
VALUE_UNIT "bytes"
BEGIN_SAMPLE 0.00
SYSTEM 24
END_SAMPLE 0.00
BEGIN_SAMPLE 1.00
elim 180
insert 24
intersect 12
disin 60
main 12
reduce 20
SYSTEM 12
END_SAMPLE 1.00
MARK 1.50
MARK 1.75
MARK 1.80
BEGIN_SAMPLE 2.00
elim 192
insert 24
intersect 12
disin 84
main 12
SYSTEM 24
END_SAMPLE 2.00
BEGIN_SAMPLE 2.82
END_SAMPLE 2.82
π SEE ALSO π
dvips(1)latex(1)hbchp (1)lmlchp(1)- C. Runciman and D. Wakeling, Heap Profiling for Lazy Functional Languages, YCS-172, University of York, 1992
π NOTES π
POSTSCRIPT is a registered trademark of Adobe Systems Incorporated. β¨
π AUTHOR π
David Wakeling of the University of York.
and that's the whole page, bestie β 18 April 1992, HP2PS(1), that's the version and the date, mwah π go forth and graph, you absolute icon π§
π¦ where this page comes from
- debian bookworm: ghc 9.0.2-4 Β· BSD-3-Clause
- debian trixie: ghc 9.6.6-4 Β· BSD-3-Clause
- ubuntu noble: ghc 9.4.7-3 Β· BSD-3-Clause
- ubuntu questing: ghc 9.6.6-4
- ubuntu resolute: ghc 9.10.3-4 Β· BSD-3-Clause
- ubuntu stonking: ghc 9.10.3-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms