Performance Statistics
Statistics about the CPU(s), memory, disk drives, processes, user session, system uptime, network packets, etc. for a host or a virtual machine are available using the Parallels C API. There are two main methods for obtaining statistics:
- Using
PrlSrv_GetStatistics (for host statistics) or PrlVm_GetStatistics (for virtual machine statistics) to obtain a report containing the latest performance data. In addition, the virtual machine disk I/O statistics can be obtained using the PrlVm_GetPerfStats function. - Using
PrlSrv_SubscribeToHostStatistics (for host statistics) or PrlVm_SubscribeToGuestStatistics (for virtual machine statistics) to receive statistics on a periodic basis.
The following sections describe each method in detail.
|