函数:set_config
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
函数原型
- C函数原型
1
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength)
- python函数
1
ret = acl.prof.set_config(config_type, config)
参数说明
参数名 |
说明 |
---|---|
config_type |
int,作为config_type参数值。每个常量表示不同采集配置,若要使用该接口下不同的选项采集多种性能数据,则需要多次调用该接口,详细说明如下:
|
config |
str,配置项的参数值。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码。
|
约束说明
先调用acl.prof.set_config接口再调用acl.prof.start接口,可根据需求选择调用该接口。
父主题: Profiling数据采集接口