【文件属性】:
文件名称:sarviewer:从sar数据使用gnuplot或matplotlib(Python)生成图
文件大小:374KB
文件格式:ZIP
更新时间:2021-02-04 12:43:17
python linux cpu monitoring ram
萨尔维尤
该存储库旨在提供一种简单的方法来测量计算机中的资源使用情况(CPU,RAM ...)。 它使用sar检索数据,并使用gnuplot(默认情况下)或matplotlib从中生成图形。
有助于在压力测试期间可视化和分析数据。
根据sar数据生成以下图:
CPU使用率
平均负载
RAM使用
I / O传输
每秒创建的进程
交换使用
上下文切换
任务(运行队列,活动,已阻止)
网络接口统计信息(默认为eth0)
TCP / UDP套接字
要求
对于基本功能,您将需要使用软件包管理器在系统中安装sysstat和gnuplot :
# Debian & based
apt-get i
【文件预览】:
sarviewer-master
----plotter.sh(1KB)
----data_collector.sh(4KB)
----data()
--------proc.dat(4KB)
--------swap.dat(7KB)
--------loadaverage.dat(8KB)
--------sockets.dat(5KB)
--------cpu.dat(9KB)
--------netinterface.dat(7KB)
--------ram.dat(13KB)
--------iotransfer.dat(7KB)
----system_data_reader.sh(5KB)
----plotters()
--------gnuplot()
--------matplotlib()
----LICENSE(34KB)
----sarviewer.properties(726B)
----graphs()
--------loadaverage.png(30KB)
--------proc.png(32KB)
--------ram.png(34KB)
--------iotransfer.png(39KB)
--------tasks.png(20KB)
--------sockets.png(57KB)
--------netinterface.png(29KB)
--------contextsw.png(36KB)
--------cpu.png(57KB)
--------swap.png(21KB)
----README.md(8KB)