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