summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* 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