Function: set_config
C Prototype |
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength) |
|---|---|
Python Function |
ret = acl.prof.set_config(config_type, config) |
Function Usage |
Functions as an extended API of acl.prof.create_config and is used to set profile data collection parameters. This API can be called for multiple times. You need to ensure data consistency and accuracy. |
Input Description |
config_type: int. Each constant indicates a different collection configuration. To use different options of this API to collect multiple types of profile data, you need to call this API for multiple times. The details are as follows:
config: str, configuration parameter value. |
Return Value |
ret: int, error code.
|
Restrictions |
Call acl.prof.set_config and then acl.prof.start. You can call this API as required. |