GithubHelp home page GithubHelp logo

yashmaniya0 / real-time-resource-monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 946 KB

Given real-time resource monitor is a great tool to examine our system's proper functioning. It enables you to keep track of what is happening in our system's background so that we can stop the activity that might cause problems.

License: MIT License

CMake 5.57% Makefile 65.75% Shell 0.05% C 8.80% C++ 19.40% TypeScript 0.04% Python 0.38%
linux ncurses proc psutil resource-monitor

real-time-resource-monitor's Introduction

Real-Time Resources Monitor for Linux

img

img

img

psutil

psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python. It is useful mainly for system monitoring, profiling, limiting process resources and the management of running processes. We have implemented real time resource monitor graph using this library.

To install psutil on your PC:

pip install psutil

ncurses

ncurses is a library that facilitates text-based graphical output in the terminal. This project relies on ncurses for display output of CPU utilization as well as main memory utilization data.

To install ncurses on your Linux environment:

sudo apt install libncurses5-dev libncursesw5-dev

cmake

This project uses Make. The Makefile has four targets:

  • build compiles the source code and generates an executable
  • format applies ClangFormat to style the source code
  • debug compiles the source code and generates an executable, including debugging symbols
  • clean deletes the build/ directory, including all of the build artifacts
sudo apt-get -y install cmake
sudo apt-get -y install cmake-qt-gui

How to use

Navigate to home directory path in terminal and write following commands:

For displaying CPU utilization as well as main memory utilization stats :

rmdir ./build
make build
./build/monitor

For displaying real-time resource monitor (will only work for Windows):

python3 ./src/resource_usage_graph.py

You can also run ./script.sh directly in your Linux Terminal

If the above steps do not work, make sure you have added execution perms for the ./build/monitor and ./script.sh

The code was tested on the following specifications

  • PC : ACER ASPIRE 7
  • CPU : Intel Core™ i5-9300H
  • GPU : Nvidia GeForce GTX 1650 / 60 Hz
  • RAM : 8 GB
  • OS : Ubuntu 16.02.4 LTS
  • Kernal : 4.15.0-72-generic

real-time-resource-monitor's People

Contributors

yashmaniya0 avatar

Watchers

 avatar

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.