[net.lang.prolog] profiling prolog programs?

pincus@ernie.BERKELEY.EDU (Jonathan Pincus) (10/21/85)

Has anybody out there ever tried to profile a prolog program?  Specifically,
how do I find out how much time various procedures require?  Obvoiusly, I
want to do this in order to speed up the program in the important places
(for that matter, does the old chestnut about 10% of the code requiring 90%
of the execution time hold for prolog?).

My specific environment is Cprolog (version 1.2) on a VAX.  One thought
that has occurred to me is that timing information needs to be recorded
at the same time that "spy"ing information gets printed out, but I'm not
sure how to do that.  Any comments/advice/solutions will be gratefully
accepted, and if anything exciting turns up I'll post a summary . . . but
please DON'T tell me "Oh, that's just an efficiency question, you shouldn't
worry about that!"

jon 					pincus@ernie.berkeley.edu