Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Linux CPU usage monitor on the terminal.

Introduction

This is a simple CPU usage monitor application that reports CPU usage per core as well as average usage by, parsing data from /proc/stat.

The application prints the CPU usage per core in colored text to the terminal using ANSI escape codes. If the usage is less than 50% it will be displayed in green, otherwise it will be red.

It's written fully in C and should compile fine on any Linux distribution.

Screenshot

I ran sha256sum < /dev/urandom on one terminal to see the CPU usage spike in action.

App Screenshot

Pre-requisites.

  1. You should have the /proc/ filesystem mounted. Normally it's mounted by default.
  2. The application should have permission to read the file: /proc/stat.
  3. You should have GCC C compiler installed. If you use a different compiler please edit the Makefile to make the compilation work.

How to build?

  1. First clone the project:

    git clone https://github.com/aravinda333/CPU-Performance-Monitor-Linux.git
  2. cd to the directory:

    cd CPU-Performance-Monitor-Linux
  3. Run make to build the executable.

  4. Run the executable:

    ./cpu-perfmon

Thankyou very much!

Thankyou everyone for testing this out!

☕ Support

If you loved this project, please consider sending a donation:

Buy Me A Coffee

About

A simple Linux utility to monitor CPU usage per core and report it to terminal in coloured text.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages