Skip to main content

cgroup parser for python

Project description

Python解析cgroup(支持容器)

  1. 获取CPU核数
  2. 获取CPU使用率
  3. 获取内存限量
  4. 获取内存占用量
import cgroup_parser
cgroup_parser.get_max_procs()
cgroup_parser.get_cpu_usage()
cgroup_parser.get_memory_limit()
cgroup_parser.get_memory_usage()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgroup-parser-0.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

cgroup_parser-0.0.2-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page