Print this page
Cstyle cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/gprof/common/printgprof.c
          +++ new/usr/src/cmd/sgs/gprof/common/printgprof.c
↓ open down ↓ 57 lines elided ↑ open up ↑
  58   58  
  59   59          return (conv_demangle_name(selfp->name));
  60   60  }
  61   61  
  62   62  void
  63   63  printprof(void)
  64   64  {
  65   65          nltype  *np;
  66   66          nltype  **sortednlp;
  67   67          int     i, index;
  68      -        int     print_count = number_funcs_toprint;
       68 +        int     print_count = number_funcs_toprint;
  69   69          bool    print_flag = TRUE;
  70   70          mod_info_t      *mi;
  71   71  
  72   72          actime = 0.0;
  73   73          (void) printf("\f\n");
  74   74          flatprofheader();
  75   75  
  76   76          /*
  77   77           *      Sort the symbol table in by time
  78   78           */
↓ open down ↓ 207 lines elided ↑ open up ↑
 286  286                          return (TRUE);
 287  287  
 288  288          return (FALSE);
 289  289  }
 290  290  
 291  291  void
 292  292  printgprof(nltype **timesortnlp)
 293  293  {
 294  294          int     index;
 295  295          nltype  *parentp;
 296      -        int     print_count = number_funcs_toprint;
      296 +        int     print_count = number_funcs_toprint;
 297  297          bool    count_flag = TRUE;
 298  298  
 299  299          /*
 300  300           * Print out the structured profiling list
 301  301           */
 302  302          gprofheader();
 303  303  
 304  304          for (index = 0; index < total_names + ncycle && count_flag; index++) {
 305  305                  parentp = timesortnlp[index];
 306  306                  if (zflag == 0 && parentp->ncall == 0 &&
↓ open down ↓ 757 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX