aclprofSetConfig
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Functions as an extended API of aclprofCreateConfig and is used to set profile data collection parameters.
This API can be called multiple times. You need to ensure data consistency and accuracy.
Prototype
1 | aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
configType |
Input |
It is used as the value of the configType parameter. Each enumeration value indicates a different collection configuration. To collect multiple types of profile data, you need to call this API multiple times. For details, see aclprofConfigType. |
config |
Input |
Configuration parameter value. |
configLength |
Input |
Length of the config, in bytes. The maximum length is 256 bytes. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
Call aclprofSetConfig and then aclprofStart. You can call this API as required.