That was a batch program processing about 500,000 records through about 20 programs apiece. 19 of those calls take a total of under a minute or so; the 20th takes 95% of the time, and it's still a mystery why.
Tom - I was reading your essay on Profiler. I don't quite get it, but it sounds interesting. I think - correct me if I am wrong - you are using the PSC-provided ability to create the profiler output, and then your own P4GL code to parse that output and create nice reports - as opposed to loading it into their little profiler viewer tool. Is that correct?