Function QnnProfile_free¶
Defined in File QnnProfile.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnProfile_free(Qnn_ProfileHandle_t profile)¶
Free memory associated with the profile handle. All associated QnnProfile_EventId_t event handles are implicitly freed.
- Parameters
profile – [in] Handle to be freed.
- Returns
Error code
QNN_SUCCESS: No error encountered
QNN_PROFILE_ERROR_INVALID_HANDLE: profile is not a valid handle.
QNN_PROFILE_ERROR_MEM_ALLOC: error related to memory de-allocation
QNN_PROFILE_ERROR_HANDLE_IN_USE: profile is in-use and cannot be freed.
Note
Releasing the profile handle invalidates the memory returned via calls on this handle such as QnnProfile_getEvents(), QnnProfile_getSubEvents(), QnnProfile_getEventData(), QnnProfile_getExtendedEventData(), etc.
Note
The profile handle cannot be freed when it is bound to another API component or in use by an API call.
Note
Use corresponding API through QnnInterface_t.