GpaEndSession
Syntax
Description
Ends sampling with the currently enabled set of counters. This will end the sampling process. A session must be ended before results for that session can be queried.
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-created session. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The session was successfully ended. |
kGpaStatusErrorNullPointer |
The supplied |
kGpaStatusErrorSessionNotFound |
The supplied |
kGpaStatusErrorVariableNumberOfSamplesInPasses |
There were an inconsistent number of samples created in each pass of the session. |
kGpaStatusErrorNotEnoughPasses |
There were not enough passes created in the session |
kGpaStatusErrorSessionNotStarted |
The session has not been started. |
kGpaStatusErrorFailed |
The session could be be ended. |
kGpaStatusErrorOtherSessionActive |
Another session is active. |
kGpaStatusErrorException |
Exception occurred. |