[BACK]Return to gprof.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / gprof

Diff for /src/usr.bin/gprof/gprof.c between version 1.12 and 1.13

version 1.12, 2003/06/03 02:56:08 version 1.13, 2003/06/10 22:20:47
Line 52 
Line 52 
 extern char *__progname;  extern char *__progname;
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
     int argc;  
     char **argv;  
 {  {
     char        **sp;      char        **sp;
     nltype      **timesortnlp;      nltype      **timesortnlp;
Line 215 
Line 213 
      *  and the arcs.       *  and the arcs.
      */       */
 void  void
 getpfile(filename)  getpfile(char *filename)
     char *filename;  
 {  {
     FILE                *pfile;      FILE                *pfile;
     FILE                *openpfile();      FILE                *openpfile();
Line 244 
Line 241 
 }  }
   
 FILE *  FILE *
 openpfile(filename)  openpfile(char *filename)
     char *filename;  
 {  {
     struct gmonhdr      tmp;      struct gmonhdr      tmp;
     FILE                *pfile;      FILE                *pfile;
Line 296 
Line 292 
 }  }
   
 void  void
 tally( rawp )  tally(struct rawarc *rawp)
     struct rawarc       *rawp;  
 {  {
     nltype              *parentp;      nltype              *parentp;
     nltype              *childp;      nltype              *childp;
Line 325 
Line 320 
  * dump out the gmon.sum file   * dump out the gmon.sum file
  */   */
 void  void
 dumpsum( sumfile )  dumpsum(char *sumfile)
     char *sumfile;  
 {  {
     nltype *nlp;      nltype *nlp;
     arctype *arcp;      arctype *arcp;
Line 382 
Line 376 
 }  }
   
 void  void
 readsamples(pfile)  readsamples(FILE *pfile)
     FILE        *pfile;  
 {  {
     UNIT        sample;      UNIT        sample;
     int i;      int i;
Line 436 
Line 429 
  *      have any overlap (the two end cases, above).   *      have any overlap (the two end cases, above).
  */   */
 void  void
 asgnsamples()  asgnsamples(void)
 {  {
     int j;      int j;
     UNIT                ccnt;      UNIT                ccnt;
Line 502 
Line 495 
   
   
 unsigned long  unsigned long
 min(a, b)  min(unsigned long a, unsigned long b)
     unsigned long a,b;  
 {  {
     if (a<b)      if (a<b)
         return(a);          return(a);
Line 511 
Line 503 
 }  }
   
 unsigned long  unsigned long
 max(a, b)  max(unsigned long a, unsigned long b)
     unsigned long a,b;  
 {  {
     if (a>b)      if (a>b)
         return(a);          return(a);
Line 526 
Line 517 
      *  for a routine is in the next bucket.       *  for a routine is in the next bucket.
      */       */
 void  void
 alignentries()  alignentries(void)
 {  {
     struct nl           *nlp;      struct nl           *nlp;
     unsigned long       bucket_of_entry;      unsigned long       bucket_of_entry;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13