Function QnnProfile_getEventData

Function Documentation

Qnn_ErrorHandle_t QnnProfile_getEventData(QnnProfile_EventId_t eventId, QnnProfile_EventData_t *eventData)

Query the data associated with this profile event.

Parameters
  • eventId[in] Qnn profile event being queried.

  • eventData[out] Event data associated to this event.

Returns

Error code

  • QNN_SUCCESS: No error encountered

  • QNN_PROFILE_ERROR_UNSUPPORTED: API not supported.

  • QNN_PROFILE_ERROR_INCOMPATIBLE_EVENT: eventData is incompatible with the API. Use QnnProfile_getExtendedEventData instead.

  • QNN_PROFILE_ERROR_INVALID_ARGUMENT: eventData is NULL.

  • QNN_PROFILE_ERROR_INVALID_HANDLE: eventId does not identify a valid event.

  • QNN_PROFILE_ERROR_MEM_ALLOC: error related to memory allocation

Note

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

Note

Use corresponding API through QnnInterface_t.