Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

FliegendeWurst/recursive-cpu-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recursive-cpu-usage

Simple utility to get the CPU used by a process and all of its children / grand-children / ...

Done by measuring the time the process was scheduled in user and kernel mode over a 100 ms interval. Note that the output will be inaccurate if the child processes are very short lived.

Installation

cargo install --git https://github.com/FliegendeWurst/recursive-cpu-usage

Usage

Execute: recursive-cpu-usage <PID>

> recursive-cpu-usage 1234
 0.5
> recursive-cpu-usage 81925
10.5

About

[migrated: https://codeberg.org/FliegendeWurst/recursive-cpu-usage] Get CPU usage of whole process tree

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages