home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / CBMDevKit5.dms / CBMDevKit5.adf / DOCS / tooldocs.lha / drip.doc < prev    next >
Encoding:
Text File  |  1993-11-04  |  1.0 KB  |  39 lines

  1.  
  2.                     DRIP
  3.  
  4. USAGE:
  5.     DRIP [<threshold>]
  6.  
  7. PURPOSE:
  8.     To reveal unrestrained memory allocation or deallocation
  9.  
  10. SPECIFICATION:
  11.     DRIP  is a tool used in program development that reports unrestrained
  12.     memory allocation or deallocation.  For instance, if a program is
  13.     suspected of failing to free memory which it has aquired, DRIP can be
  14.     used to reveal any memory left allocated after the program has been
  15.     terminated.  DRIP should be executed initially to allow it to install
  16.     itself (by creating its own message port).  DRIP also has  a provision
  17.     for a threshhold which causes it to report a loss/gain only if it is
  18.     greater than <threshold>.  <threshold> should be given in decimal.  If
  19.     it is not supplied then DRIP assumes it to be zero.
  20.  
  21. EXAMPLE:
  22.  
  23.     First initialize DRIP; <threshold> is zero.
  24.  
  25.     1> drip
  26.  
  27.     Run suspect program.
  28.  
  29.     1> myprog
  30.  
  31.     Terminate suspect program.
  32.     Report any memory net gain/loss.
  33.  
  34.     1> drip 1024
  35.     ==========>> drip: lost 2203 bytes
  36.  
  37.     According to DRIP 2203 bytes were not freed by myprog.
  38.  
  39.