Function QnnProfile_getEvents

Function Documentation

Qnn_ErrorHandle_t QnnProfile_getEvents(Qnn_ProfileHandle_t profile, const QnnProfile_EventId_t **profileEventIds, uint32_t *numEvents)

Get Qnn profile events collected on the profile handle.

Parameters
  • profile[in] A profile handle.

  • profileEventIds[out] Returns handles to Qnn profile events collected on this profile object.

  • numEvents[out] Number of profile events.

Returns

Error code

  • QNN_SUCCESS: No error encountered

  • QNN_PROFILE_ERROR_INVALID_ARGUMENT: profileEventIds or numEvents is NULL.

  • QNN_PROFILE_ERROR_INVALID_HANDLE: profile is not a valid handle.

  • QNN_PROFILE_ERROR_MEM_ALLOC: error related to memory allocation

Note

profileEvents parameter: profile event memory is associated with the profile object and released on profile object release in QnnProfile_free().

Note

Use corresponding API through QnnInterface_t.