GpaGetNumCounters

Syntax

Copied!

GpaStatus GpaGetNumCounters(
    GpaContextId context_id,
    GpaUInt32* count);

Description

Gets the number of counters available.

Parameters

Name

Description

context_id

Unique identifier of a previously-opened context.

count

The value which will hold the count upon successful execution.

Return value

Return value

Description

kGpaStatusOk

The number of counters was successfully retrieved.

kGpaStatusErrorNullPointer

The supplied count parameter is NULL.
The supplied context_id parameter is NULL.

kGpaStatusErrorContextNotOpen

The supplied context is not currently open.

kGpaStatusErrorContextNotFound

The supplied context_id parameter was not recognized as a previously-opened context identifier.

kGpaStatusErrorFailed

The number of counters could not be retrieved.

kGpaStatusErrorException

Exception occurred.