Skip to content

GpaGetNumCounters

Syntax

GpaStatus GpaGetNumCounters(
GpaSessionId session_id,
GpaUInt32* count);

Description

Gets the number of counters available.

Parameters

NameDescription
session_idUnique identifier of a previously-created session.
countThe value which will hold the count upon successful execution.

Return value

Return valueDescription
kGpaStatusOkThe number of counters was successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied count parameter is NULL.

The supplied session_id parameter is NULL. | | kGpaStatusErrorSessionNotFound If the supplied session_id is invalid. | | | kGpaStatusErrorFailed | The number of counters could not be retrieved. | | kGpaStatusErrorException | Exception occurred. |