summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/printgprof.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove done() which was just exit() so use of warn()/err() can be made. Abortcharnier2002-10-161-11/+27
| | | | | | | on allocation failure instead of displaying a warning and deferencing NULL pointer after. Spelling. Add prototypes. Add list of option in synopsis section of man page, -d is not referenced because available as a compile option. It should be made a runtime option btw.
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Fix preprocessor directive syntax (text after #endif).wollman2002-05-301-2/+2
| | | | The style of this program is still atrocious (not fixed).
* Fixed some misspellings of 2 as sizeof(UNIT) so that they won't breakbde2002-03-061-2/+2
| | | | | | | | | | | | | | | | | things when sizeof(UNIT) becomes a runtime parameter. The relevant 2 is the one in profil(2)'s scaling of pc's to bucket numbers: bucket = (pc - offset) / 2 * profil_scale / 65536 gprof(1) must duplicate this scaling, bug for bug compatibly, so it must first do an integer division by 2 although this mainly makes scales larger than 65536 useless. sizeof(UNIT) was already wrong in gprof4, but there were no problems because the fake profil scale is a multiple of 2. There are also some rounding bugs in the scaling, but these are only problems if profil(2) is used directly to create unusual (and not useful) scales.
* Fixed printf format errors. In printgprof.c, also convert the scalebde2002-02-211-19/+19
| | | | | | without possibly losing lots of precision, and print the scale using %g instead of %d in case it is non-integral. %g might not be the best format for this.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3).charnier1997-07-101-1/+6
|
* Print times/call in ns if hz >= 10e7. hz will be this large for highbde1996-06-081-3/+8
| | | | | | | resolution profiling on Pentiums. On a 100MHz Pentium, the resolution is at best 10 ns and actually a few hundred ns, but units of 10's or 100's of ns would be inconvenient and the current units of 1 us are a bit too coarse.
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* New flag -u to suppress functions whose name does not begin with anbde1994-09-051-6/+16
| | | | | | | | underscore. Use it to avoid seeing badsw when profiling the kernel. Print times more accurately (e.g. usec in %8.0f format instead of msec in %8.2f format for averages) if hz >= 10000. This should have no effect now since profhz is only 1024.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+718
OpenPOWER on IntegriCloud