home *** CD-ROM | disk | FTP | other *** search
- This is pmp, the poor man's profiler.
-
- Recent studies have shown that most UNIX programmers don't even have a
- statement execution counter. The pmp script and pmplib library should
- rectify this depressing state of affairs.
-
- pmp gives you both statement counts and timing counts. If you undefine
- PMPSIG in pmplib.h, pmp will provide only statement counts---but with
- ridiculously portable code.
-
- pmp has one big advantage over every other profiling system I've seen:
- it doesn't force optimization off. You can place profiling marks
- anywhere in your code; you only hurt optimization where you put the
- marks. So if you're sick of having your program slowed down dramatically
- just because the profiler sticks its nose into your inner loops, pmp
- should be a welcome relief.
-
- Of course, pmp is also the smallest profiler known to man.
-
- Other than that, it's pretty poor.
-
- This is pmp version 1.0, 9/13/90, by Daniel J. Bernstein.
- pmp is public domain.
-
-
- Requirements:
-
- sed, grep, sh, cc.
-
- If you want timing information, BSD-style setitimer() and VTALRM.
-
-
-
- To set up pmp, just ``make'', or cc -o pmplib.o pmplib.c -O.
-
- To use pmp, follow the example in test.c. test.script shows the results
- of a sample pmp run. A manual page is in pmp.1.
-
-
- Caveats:
-
- Not many. pmp is probably more reliable than your previous profiler.
-
-
- Good luck!
-