I am developing a reporting application for a tool that use perl scripts on the background to do business processes. We are running several processes in parallel and at times the system get slow. We are trying to see the resource utilization on the process (like system CPU, idle_time, avg_load, highest_load, low_load etc), memory utilization etc) and write to a file on disk on completion of the process.
The file is eventually loaded into a reporting engine. I will need to capture these statistics at different times in the program around method calls or a set of methods and be able to calculate the mean CPU usage, memory, Disk I/0 etc.
Based on this I can tweak how many processes I can execute in parallel over a period of time, but then this is all on the analysis side of the reporting. Need to get this rolling soon, and I would like to work with some Perl modules that are easy to implement in a short span and provide the range of stats expected from a running process. Will pay for a working demo. Support may be needed.