On Tuesday, January 29, 2002, at 07:42 PM, James Edward Gray II wrote: > My Programming Perl book says that profiling results should be forgiven > some inaccuracies, but these numbers don't even seem close. Can > somebody explain that top function below to me? An average call time > of 0.0002 times 175353 calls doesn't get anywhere near 4000 seconds the > way I do math. What am I not getting here?
Accuracy. Notice that &General::match, like Ban Roll-On, is giving 110% . That probably means that when so much time is spent in one function, the profiler is very inaccurate. But it also tells you what you need to know, right? Optimize (or eliminate) &General::match . I suppose it's also possible that the profiler is giving you completely bogus information, in which case you can try to figure it out and write a bug report. -Ken
