aclprofModelSubscribe

Description

Subscribes to basic operator information in the model, including the operator name, operator type, and operator execution time.

Restrictions

This API must be used in pair with aclprofModelUnSubscribe.

Prototype

aclError aclprofModelSubscribe(uint32_t modelId, const aclprofSubscribeConfig *profSubscribeConfig)

Parameters

Parameter

Input/Output

Description

modelId

Input

ID of the model to subscribe.

A successful aclmdlLoadFromFile, aclmdlLoadFromMem, aclmdlLoadFromFileWithMem, or aclmdlLoadFromMemWithMem call returns a model ID.

profSubscribeConfig

Input

Subscription configuration.

Call aclprofCreateSubscribeConfig to create data of the aclprofSubscribeConfig type in advance.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For the API call example, see Profile Data Collection.