函数:set_config
C函数原型  | 
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength)  | 
|---|---|
Python函数  | 
ret = acl.prof.set_config(config_type, config)  | 
函数功能  | 
acl.prof.create_config接口的扩展接口,用于设置性能数据采集参数。 该接口支持多次调用,用户需要保证数据的一致性和准确性。  | 
输入说明  | 
config_type:int,作为config_type参数值。每个常量表示不同采集配置,若要使用该接口下不同的选项采集多种性能数据,则需要多次调用该接口,详细说明如下: 
 config:str,配置项的参数值。  | 
返回值说明  | 
ret:int,错误码。 
  | 
约束说明  | 
先调用acl.prof.set_config接口再调用acl.prof.start接口,可根据需求选择调用该接口。  | 
父主题: Profiling数据采集接口