home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1816 / README < prev    next >
Encoding:
Text File  |  1990-12-28  |  1.3 KB  |  46 lines

  1. This is pmp, the poor man's profiler.
  2.  
  3. Recent studies have shown that most UNIX programmers don't even have a
  4. statement execution counter. The pmp script and pmplib library should
  5. rectify this depressing state of affairs.
  6.  
  7. pmp gives you both statement counts and timing counts. If you undefine
  8. PMPSIG in pmplib.h, pmp will provide only statement counts---but with
  9. ridiculously portable code.
  10.  
  11. pmp has one big advantage over every other profiling system I've seen:
  12. it doesn't force optimization off. You can place profiling marks
  13. anywhere in your code; you only hurt optimization where you put the
  14. marks. So if you're sick of having your program slowed down dramatically
  15. just because the profiler sticks its nose into your inner loops, pmp
  16. should be a welcome relief.
  17.  
  18. Of course, pmp is also the smallest profiler known to man.
  19.  
  20. Other than that, it's pretty poor.
  21.  
  22. This is pmp version 1.0, 9/13/90, by Daniel J. Bernstein.
  23. pmp is public domain.
  24.  
  25.  
  26. Requirements:
  27.  
  28.   sed, grep, sh, cc.
  29.  
  30.   If you want timing information, BSD-style setitimer() and VTALRM.
  31.  
  32.  
  33.  
  34. To set up pmp, just ``make'', or cc -o pmplib.o pmplib.c -O.
  35.  
  36. To use pmp, follow the example in test.c. test.script shows the results
  37. of a sample pmp run. A manual page is in pmp.1.
  38.  
  39.  
  40. Caveats:
  41.  
  42.   Not many. pmp is probably more reliable than your previous profiler.
  43.  
  44.  
  45. Good luck!
  46.