Parallels C API Reference Guide
|
The PHT_SYSTEM_STATISTICS handle is used to obtain performance statistics for the host computer or an individual virtual machine.
There are two main methods for obtaining a handle of type PHT_SYSTEM_STATISTICS:
The PHT_SYSTEM_STATISTICS object provides methods for obtaining handles to objects containing the performance data of a specific type. It also provides methods for obtaining memory statistics directly from it. The steps in obtaining the performance data are as follows:
|
Name |
Description |
|
Determines the number of handles of type PHT_SYSTEM_STATISTICS_CPU contained in the specified PHT_SYSTEM_STATISTICS object. | |
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_CPU containing the specified CPU statistics. | |
|
Determines the number of handles of type PHT_SYSTEM_STATISTICS_DISK contained in the specified PHT_SYSTEM_STATISTICS object. | |
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_DISK containing the specified disk statistics. | |
|
Returns the Parallels Service uptime in seconds. | |
|
Returns free RAM size in bytes. | |
|
Returns free swap size in bytes. | |
|
Determines the number of objects of type PHT_SYSTEM_STATISTICS_IFACE contained in the specified PHT_SYSTEM_STATISTICS object. | |
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_IFACE containing the specified network interface statistics. | |
|
Returns operating system uptime in seconds. | |
|
Determines the number of handles of type PHT_SYSTEM_STATISTICS_PROCESS contained in the specified PHT_SYSTEM_STATISTICS object. | |
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_PROCESS containing the specified system process statistics. | |
|
Returns total RAM size in bytes. | |
|
Returns total swap size in bytes. | |
|
Returns the size RAM currently in use (in bytes). | |
|
Returns the size of swap space currently in use (in bytes). | |
|
Determines the number of handles of type PHT_SYSTEM_STATISTICS_USER_SESSION contained in the specified PHT_SYSTEM_STATISTICS object. | |
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_USER_SESSION containing the specified user session statistics. |
Copyright (c) 1999-2009 Parallels Software International Inc.
|
What do you think about this topic? Send feedback!
|