⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme_api

📁 是一个包装库
💻
字号:
////////////////////////////////////////////////////////////////////////////////////metrics api///////////////////////////////////////////////////////////////////////////////////**************************************************************desc:metric_str is to the type of char**input:@metricname is the metric name you want get*output:@metricvalue is the value of the metric you got   *ret:	1  成功		2 不是字符类型	3失败**************************************************************/unsigned int metric_str(char* metricvalue,const char* metricname)/**************************************************************desc:metric_long is to the type of number,such as int,long*input:@metricname is the metric name you want get*output:@metricvalue is the value of the metric you got   *ret:	1  成功		2 不是整形类型	3失败**************************************************************/unsigned int metric_long(long metricvalue,const char* metricname)/**************************************************************desc:metric_float is to the type of float*input:@metricname is the metric name you want get*output:@metricvalue is the value of the metric you got   *ret:	1  成功		2 不是浮点类型	3失败**************************************************************/unsigned int metric_float(float metricvalue,const char* metricname)/**************************************************************desc:key_map is to read key into a file*input:*output:@file is the file name which records the keys   *ret:	1  成功		2 失败**************************************************************/unsigned int key_map(const char* file)////////////////////////////////////////////////////////////////////////////////////metrics summary///////////////////////////////////////////////////////////////////////////////////*************************************************************/*static metrics/*************************************************************cpu_product		char*		20		cpu厂家cpu_model		char*		20		cpu型号cpu_clock		float		float	cpu主频cpu_num			int			int		cpu数量cpu_pintype		int			int		cpu针脚类型mboard_model	char*		30		主板型号	mem_slotnum		int			int		内存插槽数mem_slotstatus	int 		int		内存插槽状态		需要单独的APImem_total		int			int		内存总数mem_buffer		int			int		缓存大小mem_buffer		int			int		高速存大小vcard_model		char*		50		显卡型号vcard_arch		char*		50		显卡体系结构vcard_gpuclock	float		float	显卡主频vcard_bustype	char*		30		bus类型			vcard_memamount int			int		显存大小ncard_model		char*		20		网卡类型scard_model		char*		20		声卡类型scard_pcmvol	int			int		pcm音量		machine_boottime char*		20		系统启动时间os_name			char* 		15		操作系统名称	os_release		char*		15		操作系统版本号		/*************************************************************/*dynamic metrics/*************************************************************power_pos3v		float		float	3v电压power_pos5v		float		float	5v电压power_pos12v	float 		float	12v电压power_neg5v		float		float	-5v电压power_neg12v	float 		float	-12电压power_cmospress float 		float	cmos电压power_stdby		float		float	stdby电压,可能是待机电压power_cpupress	float		float	cpu电压power_ddrpress	float		float	ddr内存电压cpu_temp		float		float	cpu温度cpu_fanrpm		int			int		cpu风扇速cpu_aidle		float		float	cpu从启动开始累积闲置比率cpu_idle		float		float	cpu闲置比率cpu_nice		float		float	cpu nice占用比率cpu_free		float		float	cpu可用比率cpu_total		float		float	??cpu总负载cpu_system		float 		float 	cpu系统负载cpu_user		float		float	cpu用户负载cpu_wio			float		float	cpu等待io的占比,??当前还是累积mboard_temp		float 		float	主板温度net_bytesin		float		float	网络流入字节net_bytesout	float		float	网络流出字节net_pktsin		float		float	网络流入包数net_pktsout		float 		float	网络流出包数

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -