Coder Social home page Coder Social logo

busysimulator's Introduction

目的

用于消耗机器的内存和cpu运算量

用法

windows

在windows10 19045.3693 2024年4月1日下测试通过

  1. 下载打包后的文件
  2. 在config.ini中分别设置需要占用的cpu和内存百分比,以及cpu的波动范围
  3. 双击运行main.exe

其它系统(自行源码构建)

# 克隆项目
git clone https://github.com/jiangKerman/BusySimulator.git
cd BusySimulator/
# 创建虚拟环境
virtualenv venv
source venv/bin/activate
pip install psutil
python main.py
# 后面的你自己看着吧把,我只能帮你到这里了

todo

  1. cpu占用隔一段时间要判断当前占用率,然后调整 √
  2. 为linux[仅指ubuntu]打包一份可执行文件。√

tips:

windows任务管理的cpu占用率不太准 https://blog.csdn.net/qq_46273065/article/details/128827500

busysimulator's People

Contributors

jiangkerman avatar

Stargazers

 avatar

Watchers

 avatar

busysimulator's Issues

......

man~! what can i say ? 'Mamba out'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.