GpaDisableCounterByName
Syntax
Description
Disables the counter with the specified counter name (case insensitive). Subsequent sampling sessions will not provide values for any disabled counters. Initially all counters are disabled, and must explicitly be enabled.
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-created session. |
|
The name of the counter to disable. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The specified counter was successfully disabled. |
kGpaStatusErrorNullPointer |
The supplied |
kGpaStatusErrorSessionNotFound |
The supplied |
kGpaStatusErrorCannotChangeCountersWhenSampling |
The set of enabled counters cannot be changed after GpaBeginSession is called. |
kGpaStatusErrorContextNotOpen |
The supplied session’s parent context is not currently open. |
kGpaStatusErrorNotEnabled |
The specified counter is not currently enabled. |
kGpaStatusErrorCounterNotFound |
The specified counter name is not valid. |
kGpaStatusErrorFailed |
An error occurred while trying to disable the counter. |
kGpaStatusErrorException |
Exception occurred. |