OnWorks favicon

hp2ps - Online in the Cloud

Run hp2ps in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command hp2ps that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



hp2ps - convert a heap profile to a POSTSCRIPT graph


hp2ps [flags] [file][.hp]


The program hp2ps converts a heap profile stored in file into a POSTSCRIPT graph, sending
the result to file.ps. By convention, files to be processed by hp2ps have a .hp
extension. However, for compatibility with older versions of hp2ps, this extension can be
omitted. If file is omitted entirely, then the program behaves as a filter.


The flags are:

-d In order to make graphs more readable, hp2ps 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. The -d option causes rougher bands (those
reprsenting series of values with the largest standard deviations) to be stacked on
top of smoother ones.

-b Normally, hp2ps 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), then hp2ps will choose to use a big box instead. The -b option forces
hp2ps 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 hp2ps 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 -e option 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 converter dvips. hp2ps requires the
width to exceed 2 inches.

-g Create output suitable for the gs POSTSCRIPT previewer (or similar). In this case
the graph is printed in portrait mode without scaling. The output is unsuitable for
a laser printer.

-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 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 -p
flag causes the graph to be drawn using the parameters determined by a previous run
of hp2ps on 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.


The format of a heap profile is best described by example:

JOB "a.out -p"
DATE "Fri Apr 17 11:43:45 1992"
SAMPLE_UNIT "seconds"
VALUE_UNIT "bytes"
elim 180
insert 24
intersect 12
disin 60
main 12
reduce 20
MARK 1.50
MARK 1.75
MARK 1.80
elim 192
insert 24
intersect 12
disin 84
main 12

Use hp2ps online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OpenFOAM - The Open Source CFD Toolbox.
    OpenFOAM is a generic, programmable
    software tool for Computational Fluid
    Dynamics (CFD). For more information,
    see: - ...
    Download OpenFOAM
  • 2
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 3
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 4
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • 7
    Old Feren OS Repositories
    Old Feren OS Repositories
    This was the Official Repository for
    Feren OS. To add the latest one, run
    this command: (16.04-based) echo
    "deb ...
    Download Old Feren OS Repositories
  • More »

Linux commands