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

Diff for /src/usr.bin/gprof/arcs.c between version 1.9 and 1.10

version 1.9, 2004/07/23 23:15:18 version 1.10, 2006/03/25 19:06:35
Line 52 
Line 52 
      *  add (or just increment) an arc       *  add (or just increment) an arc
      */       */
 void  void
 addarc( parentp , childp , count )  addarc(nltype *parentp, nltype *childp, long count)
     nltype      *parentp;  
     nltype      *childp;  
     long        count;  
 {  {
     arctype             *arcp;      arctype             *arcp;
   
Line 106 
Line 103 
 nltype  **topsortnlp;  nltype  **topsortnlp;
   
 int  int
 topcmp( npp1 , npp2 )  topcmp(nltype **npp1, nltype **npp2)
     nltype      **npp1;  
     nltype      **npp2;  
 {  {
     return (*npp1) -> toporder - (*npp2) -> toporder;      return (*npp1) -> toporder - (*npp2) -> toporder;
 }  }
Line 266 
Line 261 
 }  }
   
 void  void
 timepropagate( parentp )  timepropagate(nltype *parentp)
     nltype      *parentp;  
 {  {
     arctype     *arcp;      arctype     *arcp;
     nltype      *childp;      nltype      *childp;
Line 525 
Line 519 
 }  }
   
 int  int
 descend( node , stkstart , stkp )  descend(nltype *node, arctype **stkstart, arctype **stkp)
     nltype      *node;  
     arctype     **stkstart;  
     arctype     **stkp;  
 {  {
     arctype     *arcp;      arctype     *arcp;
     bool        ret;      bool        ret;
Line 560 
Line 551 
 }  }
   
 int  int
 addcycle( stkstart , stkend )  addcycle(arctype **stkstart, arctype **stkend)
     arctype     **stkstart;  
     arctype     **stkend;  
 {  {
     arctype     **arcpp;      arctype     **arcpp;
     arctype     **stkloc;      arctype     **stkloc;
Line 752 
Line 741 
   
 #ifdef DEBUG  #ifdef DEBUG
 void  void
 printsubcycle( clp )  printsubcycle(cltype *clp)
     cltype      *clp;  
 {  {
     arctype     **arcpp;      arctype     **arcpp;
     arctype     **endlist;      arctype     **endlist;
Line 893 
Line 881 
      *  similarly, deal with propagation fractions from parents.       *  similarly, deal with propagation fractions from parents.
      */       */
 void  void
 inheritflags( childp )  inheritflags(nltype *childp)
     nltype      *childp;  
 {  {
     nltype      *headp;      nltype      *headp;
     arctype     *arcp;      arctype     *arcp;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10