aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$Peter Wemm1999-08-294-4/+4
| | | | Notes: svn path=/stable/3/; revision=50581
* MFC rev. 1.2: don't ignore weak symbols.Dmitrij Tejblum1999-08-191-1/+0
| | | | Notes: svn path=/stable/3/; revision=50060
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn1999-01-212-55/+0
| | | | Notes: svn path=/stable/3/; revision=42951
* Make profiling work for ELF. gprof now autodetects the format ofJohn Polstra1998-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. Notes: svn path=/head/; revision=38928
* Change MACHINE to MACHINE_ARCH to support MACHINE=pc98.John Birrell1998-09-051-1/+1
| | | | Notes: svn path=/head/; revision=38850
* Don't ignore symbols containing "$". C++ destructors and otherJohn Polstra1998-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. Notes: svn path=/head/; revision=38194
* 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