summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-1/+6
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* Grammar police: "its", not "it's", is the possessive form of "it".dd2001-04-151-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Enable gprof on alpha.simokawa1999-07-164-4/+62
| | | | | | * alpha.{c,h} are same as i386.{c,h}. * Force address calculation to be done in long precision(64bit on alpha) rather than double precision(52bit).
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Don't ignore weak symbols.dt1999-07-031-1/+0
| | | | | | | | | | EGCS assign weak symbols to inline functions it couldn't inline (e.g. virtual inline functions), template functions, etc. Omitting them result in quite bogus profile. Weak symbols created by __weak_reference are not really problem. Caught by: Ilya Segalovich <iseg@comptek.ru>
* Construct the profile file name from the name of the executable. A programjmz1999-05-233-14/+13
| | | | | | | compiled with -pg and run will generate a file <executable-filename>.gmon, not gmon.out. PR: bin/8426
* Make profiling work for ELF. gprof now autodetects the format ofjdp1998-09-076-208/+345
| | | | | | | | | | | the executable file, so it will work for both a.out and ELF format files. I have split the object format specific code into separate source files. It's cleaner than it was before, but it's still pretty crufty. Don't cheat on your make world for this update. A lot of things have to be rebuilt for it to work, including the compiler and all of the profiled libraries.
* Change MACHINE to MACHINE_ARCH to support MACHINE=pc98.jb1998-09-051-1/+1
|
* Don't ignore symbols containing "$". C++ destructors and otherjdp1998-08-081-4/+3
| | | | | | | | special functions have names containing dollar signs, and ignoring them causes gprof to produce incorrect and sometimes bizarre results. The comment in the original code said that dollar signs were excluded because they are used in Pascal labels. That's not much of an issue these days.
* Revert to original style.charnier1997-07-152-5/+8
|
* 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bitbde1997-07-131-1/+1
| | | | | counters. `4' in GPROF4 and gprof4 now means 8. gprof4 needs to be recompiled to match the kernel.
* Fix typo I introduced during last commit.charnier1997-07-111-2/+2
|
* Use err(3).charnier1997-07-105-43/+42
|
* Sort cross references.wosch1997-01-151-3/+3
|
* Use a (signed) int32_t counter instead of an `unsigned int' counterbde1996-10-161-1/+1
| | | | | | | | | | for the GPROF4 case. This allows a simpler method to be used for non-statistical profiling (it allows overhead adjustments to be subtracted from one counter without harm if that counter goes negative; otherwise the adjustment would have to be distributed). 32 bit counters were already too small for GPROF4 with a 200MHz clock. int64_t counters should be used.
* 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.
* Correct some man page cross references and file location references.mpp1996-04-071-1/+1
|
* Xref clocks(7).joerg1996-04-051-0/+1
|
* Another round of man page cleanups.mpp1996-02-121-3/+3
| | | | Down to only about 100 items left to cleanup! :-)
* Implemented non-statistical kernel profiling. This is based onbde1995-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured.
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-1/+1
| | | | specified in the top level Makefiles.
* Remove trailing whitespace.rgrimes1995-05-3010-29/+29
|
* Added much-needed new options -[lL], to suppress printing of either thewollman1994-12-222-3/+21
| | | | call-graph or the flat profile, since often you only want one of them.
* New flag -u to suppress functions whose name does not begin with anbde1994-09-053-10/+32
| | | | | | | | 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.
* This commit was generated by cvs2svn to compensate for changes in r1590,rgrimes1994-05-2739-0/+6446
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-2739-0/+6446
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-272-0/+55
OpenPOWER on IntegriCloud