Performance Monitoring in PGENESIS
In PGENESIS 2.0 we provide the beginnings of a performance monitoring capability. Currently this is only customizable by modifying the source C code, but we plan to provide facilities to instrument user scripts for performance.
The monitoring package tracks the amount of time spent in these operations:
A script turns on this accounting with
setfield /post perfmon 1and turns it off with
setfield /post perfmon 0Whenever performance monitoring is active, the categories listed above accumulate time. So, to ignore the time involved in construction of a model, do not activate performance monitoring until just prior to the first simulation step.
The accumulated time values can be dumped to file with the
command
perfstatsThis writes a file to /tmp (usually a local disk) called pgenesis.ppp.nnn.acct where ppp is the process id and nnn is the node number. Each time perfstats is called it dumps the accumulated values, but it does not reset the accumulation bins.