~ chicken-core (chicken-5) /chicken-profile.mdoc
Trap1.\" Copyright (c) 2007-2022, The CHICKEN Team2.\" All rights reserved.3.\"4.\" Redistribution and use in source and binary forms, with or without5.\" modification, are permitted provided that the following conditions6.\" are met:7.\" 1. Redistributions of source code must retain the above copyright8.\" notice, this list of conditions and the following disclaimer.9.\" 2. Redistributions in binary form must reproduce the above copyright10.\" notice, this list of conditions and the following disclaimer in the11.\" documentation and/or other materials provided with the distribution.12.\" 3. The name of the authors may not be used to endorse or promote products13.\" derived from this software without specific prior written permission.14.\"15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25.\"26.\"27.Dd Apr 26, 201728.Dt CHICKEN-PROFILE 129.Os30.Sh NAME31.Nm chicken-profile32.Nd generate a report from profile-information33.Sh SYNOPSIS34.Nm35.Op Ar OPTION ...36.Op Ar FILENAME37.Sh DESCRIPTION38.Nm39reads in profiling information generated by CHICKEN40Scheme programs compiled with the41.Fl profile42option, and generates a table listing function names43and their execution times.44.Ar FILENAME45defaults to the46.Sq PROFILE.<number> ,47selecting the one with48the highest modification time, in case multiple profiles exist.49.Pp50The program accepts following arguments:51.Bl -tag -width Ds52.It Fl help53Show usage and exit.54.It Fl version55Show version and exit.56.It Fl decimals Ar DDD57Set number of decimals for seconds, average and percent columns58.Po three digits, default: 333 Pc .59.It Fl no-unused60Remove procedures that are never called.61.It Fl sort-by-avg62Sort output by average procedure execution time.63.It Fl sort-by-calls64Sort output by call frequency.65.It Fl sort-by-name66Sort output alpabetically by procedure name.67.It Fl sort-by-time68Sort output by procedure execution time.69.It Fl top Ar N70Display only the top71.Ar N72entries.73.El74.Sh EXIT STATUS75.Ex -std76.Sh SEE ALSO77.Xr chicken 1 ,78.Xr csc 179.Pp80More information can be found in the81.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".82.Sh AUTHORS83.An The CHICKEN Team84.Sh BUGS85Submit bug reports by e-mail to86.Mt chicken-janitors@nongnu.org