Function QnnProfile_create

Function Documentation

Qnn_ErrorHandle_t QnnProfile_create(Qnn_BackendHandle_t backend, QnnProfile_Level_t level, Qnn_ProfileHandle_t *profile)

Create a handle to a profile object.

Parameters
  • backend[in] A backend handle.

  • level[in] Granularity level at which the profile should collect events.

  • profile[out] A profile handle.

Returns

Error code

  • QNN_SUCCESS: No error encountered

  • QNN_PROFILE_ERROR_INVALID_ARGUMENT: profile is NULL or level is invalid.

  • QNN_PROFILE_ERROR_UNSUPPORTED: Profiling is unsupported on a backend.

  • QNN_PROFILE_ERROR_MEM_ALLOC: Error in allocating memory when creating profile handle

  • QNN_PROFILE_ERROR_INVALID_HANDLE: backend is not a valid handle

Note

Use corresponding API through QnnInterface_t.