Parallels Desktop® 10 for Mac — 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 the total virtual machine usage time 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 the amount of physical memory, in bytes, currently occupied by the virtual machine.
|
|
|
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.
|
|
|
Obtains a handle of type PHT_SYSTEM_STATISTICS_VM_DATA containing the specified system VM data statistic.
|
Copyright © 1999-2015 Parallels IP Holdings GmbH and its affiliates. All rights reserved.
|
What do you think about this topic?
Send feedback!
|