Subscribes to basic operator information, including the operator name, operator type, and operator execution time. This API is synchronous.
This API must be used in pair with aclprofModelUnSubscribe.
aclError aclprofModelSubscribe(uint32_t modelId, const aclprofSubscribeConfig *profSubscribeConfig)
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. |
0 on success; else, failure.
For the API call example, see Profile Data Collection.