Hi, I have the need for a simple profiling capability for mod_perl applications. At a few (< 50) points in my code I want to call something like:
$profiler->mark("some identifier"); and increment the counter for "some identifier". Later I want to be able to get (through a web page) a summary (grouped by identifiers) of all the profiling calls made (of course, made by all Apache child processes.) For instance, if I want to profile the number of times a particular subroutine was called, I would use: sub mysubroutine { $profiler->mark("in mysubroutine"); ... } This is very similar to logging, except for the summary part. Does anyone have ideas of a good way to implement this? Shared memory? An external daemon to record these calls? Has someone already implemented this? Robust and simple are good. Thanks, ER