aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* Revert to original style.Philippe Charnier1997-07-152-5/+8
| | | | Notes: svn path=/head/; revision=27414
* 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bitBruce Evans1997-07-131-1/+1
| | | | | | | | counters. `4' in GPROF4 and gprof4 now means 8. gprof4 needs to be recompiled to match the kernel. Notes: svn path=/head/; revision=27379
* Fix typo I introduced during last commit.Philippe Charnier1997-07-111-2/+2
| | | | Notes: svn path=/head/; revision=27327
* Use err(3).Philippe Charnier1997-07-105-43/+42
| | | | Notes: svn path=/head/; revision=27313
* Sort cross references.Wolfram Schneider1997-01-151-3/+3
| | | | Notes: svn path=/head/; revision=21748
* Use a (signed) int32_t counter instead of an `unsigned int' counterBruce Evans1996-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. Notes: svn path=/head/; revision=18968
* Print times/call in ns if hz >= 10e7. hz will be this large for highBruce Evans1996-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. Notes: svn path=/head/; revision=16227
* Correct some man page cross references and file location references.Mike Pritchard1996-04-071-1/+1
| | | | Notes: svn path=/head/; revision=15082
* Xref clocks(7).Joerg Wunsch1996-04-051-0/+1
| | | | Notes: svn path=/head/; revision=15049
* Another round of man page cleanups.Mike Pritchard1996-02-121-3/+3
| | | | | | | Down to only about 100 items left to cleanup! :-) Notes: svn path=/head/; revision=14045
* Implemented non-statistical kernel profiling. This is based onBruce Evans1995-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. Notes: svn path=/head/; revision=13108
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-07-251-1/+1
| | | | | | | specified in the top level Makefiles. Notes: svn path=/head/; revision=9701
* Remove trailing whitespace.Rodney W. Grimes1995-05-3010-29/+29
| | | | Notes: svn path=/head/; revision=8874
* Added much-needed new options -[lL], to suppress printing of either theGarrett Wollman1994-12-222-3/+21
| | | | | | | call-graph or the flat profile, since often you only want one of them. Notes: svn path=/head/; revision=5190
* New flag -u to suppress functions whose name does not begin with anBruce Evans1994-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. Notes: svn path=/head/; revision=2513
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-2741-0/+6501
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590