aclprofCreateSubscribeConfig

Description

Creates the data of the aclprofSubscribeConfig type as a subscription configuration.

To destroy data of the aclprofSubscribeConfig type, call aclprofDestroySubscribeConfig.

Restrictions

  • Use the aclprofDestroySubscribeConfig API to destroy data of the aclprofSubscribeConfig type. If data is not destroyed, the memory cannot be freed.
  • Use this API together with the aclprofDestroySubscribeConfig API. Call aclprofCreateSubscribeConfig first and then aclprofDestroySubscribeConfig.

Prototype

aclprofSubscribeConfig *aclprofCreateSubscribeConfig(int8_t timeInfoSwitch, aclprofAicoreMetrics aicoreMetrics, void *fd)

Parameters

Parameter

Input/Output

Description

timeInfoSwitch

Input

Operator profiling enable.

  • 1: enabled
  • 0: disabled.

aicoreMetrics

Input

AI Core metric to profile.

NOTE:

This API call traces operator duration only and does not support profiling of AI Core metrics.

fd

Input

Write pointer to the pipeline created by the user.

After aclprofModelUnSubscribe is called, the system closes the pipeline write pointer of the model after data is sent.

Returns

  • Success: a pointer to data of the aclprofSubscribeConfig type
  • Failure: nullptr