GpaDisableCounter
Syntax
Description
Disables the specified counter. 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 index of the counter to disable. Must lie between 0 and (GpaGetNumCounters result – 1). |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The counter was successfully disabled. |
kGpaStatusErrorNullPointer |
The supplied |
kGpaStatusErrorSessionNotFound |
The supplied |
kGpaStatusErrorCannotChangeCountersWhenSampling |
The set of enabled counters cannot be changed after GpaBeginSession is called. |
kGpaStatusErrorIndexOutOfRange |
The specified index is out of range. |
kGpaStatusErrorNotEnabled |
The specified counter is not currently enabled. |
kGpaStatusErrorFailed |
An error occurred while trying to disable the counter. |
kGpaStatusErrorException |
Exception occurred. |