GpaGetUsageTypeAsStr
Syntax
Description
Gets a string representation of the specified counter usage type. This could be used to display counter units along with their name or value. For example, the kGpaUsageTypePercentage usage_type_str
would return “percentage”.
Parameters
Name |
Description |
---|---|
|
The usage type whose string representation is needed. |
|
The address which will hold the string representation upon successful execution. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The string representation was successfully retrieved. |
kGpaStatusErrorNullPointer |
The supplied |
kGpaStatusErrorInvalidParameter |
The |
kGpaStatusErrorException |
Exception occurred. |