rp2ps(1)
π rp2ps(1) β the Region-profile to Postscript generator, bestie edition β¨
okay so this little icon is a Region-profile to Postscript generator, and it's part of the MLKit Standard ML compiler π (yes, the manual page section 1, we see you).
πΈ SYNOPSIS πΈ
rp2ps [-region [filename]]
[-stack [filename]]
[-object regionNo [filename]]
[-sampleMax n]
[-sortByTime | -sortBySize]
[-vert] [-eps width (in|mm|pt)]
[-noOfBands n]
[-comment time string] [-mark time]
[-pregion regionNo] [-print] [-stat] [-findPrgPoint n]
[-source filename] [-name name] [-interact] [-help]
A description of the options is given below π«Ά (scroll down, it's all there, i promise).
π¦ DESCRIPTION π¦
So when you invoke rp2ps, it reads a profile data file (default is profile.rp, no cap) and outputs a Postscript file based on whatever options you handed it. Like, given a profile data file profile.rp, running
rp2ps -region
will generate a region profile, which gets stored in a file called region.ps. Slay π
. And if you want to get an overview of which program points allocate data in a particular region, use the -object option (see below, it's right there π).
Now for the MLKit compiler to generate a profile data file that you can then process with rp2ps, you have to pass the option -prof to the MLKit executable. That's the whole vibe check β no -prof, no profile data, literally nothing to work with π.
Wanna learn more about region profiling with the MLKit? Consult the MLKit manual "Programming with Regions in the MLKit", which is available from the MLKit home page and from the distributions β¨. For more info about the MLKit, consult the MLKit home page:
http://melsman.github.io/mlkit
π EXAMPLES π
For examples, consult the MLKit manual "Programming with Regions in the MLKit", which is available from the MLKit home page and from the distributions π. (yes that's the whole section, she's lowkey shy, but she's valid)
β¨ OPTIONS β¨
-regionβ Profile all regions with respect to size (default output filename isregion.ps). main character behavior π-stackβ Profile stack with respect to size (default output filename isstack.ps).-object Nβ Profile all objects in regionN. (default output filename isobjectN.ps, whereNis a region number (region variable id)).-sampleMaxβ Use onlynsamples (default is64).-sortByTimeβ Choose samples equally distributed over sample time. This is the default behavior.-sortBySizeβ Choose the largest samples. This is not the default behavior.-vertβ Put a vertical line in the region graph for each sample used.-epsβ Produce encapsulated postscript with specified widthwin inches (in), millimeters (mm) or points (pt). π-noOfBands Nβ Maximum number of bands shown on the region graph. Default (and possible maximum) is20.-fixedYRange Nβ UseN(bytes) as fixed range of y-axis,-1means no fixed range on y-axis.-useTickNoβ Use tick numbers on x-axis instead of elapsed time.-comment t strβ Insert commentstr(one word only) at timetin the region graph. one word. ONE. word. π-mark tβ Insert mark at timetin the region graph.-pregion Nβ Print region information about region variableNon stdout.-printβ Print all profiling data on stdout.-statβ Print statistics on stdout.-findPrgPoint Nβ Print regions containing program pointN.-source nameβ Specify name of profile data file (default isprofile.rp).-name nameβ Name to print on top of region graph (default isrp2ps).-interactiveβ Enter interactive mode.-helpβ Print help information and exit.
π«Ά heads up bestie: the synopsis up there says-interactwhile the option list says-interactive. that's literally how the page is written, so i'm not touching it β do not come for me π
π EXIT STATUS π
Exits with status 0 on success and -1 on failure. That's it, that's the mood πΈ
β CREDITS β
The MLKit (version 2 and beyond) was developed by Lars Birkedal, Martin Elsman, Niels Hallenberg, Tommy H. Olesen, Mads Tofte, and Carsten Varming π. People who have contributed with bug-fixes and improvements include Peter Bertelsen, Ken Friis Larsen, Henning Niss, and Peter Sestoft π«Ά. Nick Rothwell and David N. Turner took part in the development of the MLKit version 1.
π§ SEE ALSO π§
mlkit(1)- The MLKit manual "Programming with Regions in the MLKit", available from the MLKit home page
http://melsman.github.io/mlkit
and that's the whole page, bestie β mwah π
this gem was brought to you by MLKit v4.7.23, stamped 2026-10-19T-00:42:06, and honestly? she ate. periodt. π₯π
π¦ where this page comes from
- nixpkgs unstable: mlkit 4.7.23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms