abstract class %Monitor.ProcessThe methods here control the Process Monitor which allow a programmer to capture metrics for the current process. The metrics are the same counters as captured by the PERFMON utility, but they are only captured for the current process and stored in the process local memory. This ensures that it has minimal effect on the rest of the system.
Application programmers can embed the methods in their code, so that the Process Monitor can be enabled and metrics reported by user processes, allowing them to analyze trouble spots on live systems.
Note that all of the counters are either 32 or 64-bit counters, according to the word length of the platform, and follow the SNMP Counter32 and Counter64 semantics defined in RFC1442. Application code which subtracts a previous value from the current value must take into account the possible wrap around back to zero. All counters for a process may be initialized to zero using Clear().
Method Inventory (Including Private)
Methods (Including Private)
The metrics are the same as those reported by ^PERFMON, and the documentation for PERFMON gives a brief description of each metric.
Note that only the current process can report its counters. To be viewed by other processes they must be written to a global or file.