Recent

Author Topic: FPC commandline read CPU utilization  (Read 271 times)

pascalbythree

  • Jr. Member
  • **
  • Posts: 96
FPC commandline read CPU utilization
« on: May 14, 2022, 06:47:32 pm »
Does anybody have a component name or example code to monitor the CPU utilization of my Raspberry for FPC in the command line?

Maybe i can strip a component ?

NumCPULib4Pascal only reads the processor count, and RPI_HAL does not have utilization percentages in it.

https://www.pragmaticlinux.com/2020/06/check-the-raspberry-pi-cpu-temperature/

This URL is only for temperature.

Does anybody have alternatives?

Greets, Wouter van Wegen

Thausand

  • Full Member
  • ***
  • Posts: 238
Re: FPC commandline read CPU utilization
« Reply #1 on: May 15, 2022, 01:32:28 pm »
Maybe you can make use: https://www.idnt.net/en-GB/kb/941772

Linux say: everything is file, so can open /proc/stat like file, read text, convert like number, make math as link write and print answer.

 

TinyPortal © 2005-2018