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:
PrlSrv_GetStatistics
(for host statistics) or
PrlVm_GetStatistics
(for virtual machine statistics) to obtain a report containing the latest performance data.
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.