Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/raku-linux-cpuinfo
Obtain Linux CPU information
https://github.com/jonathanstowe/raku-linux-cpuinfo
cpu linux raku system
Last synced: about 1 month ago
JSON representation
Obtain Linux CPU information
- Host: GitHub
- URL: https://github.com/jonathanstowe/raku-linux-cpuinfo
- Owner: jonathanstowe
- License: artistic-2.0
- Created: 2015-04-08T16:54:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T08:47:23.000Z (over 2 years ago)
- Last Synced: 2023-04-22T17:07:00.206Z (almost 2 years ago)
- Topics: cpu, linux, raku, system
- Language: Raku
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Linux::Cpuinfo
Obtain Linux CPU information.
![Build Status](https://github.com/jonathanstowe/Raku-Linux-Cpuinfo/workflows/CI/badge.svg)
## Synopsis
```raku
use Linux::Cpuinfo;my $cpuinfo = Linux::Cpuinfo.new();
my $cnt = $cpuinfo.num-cpus(); # > 1 for an SMP system
for $cpuinfo.cpus -> $cpu {
say $cpu.bogomips;
}
```## Description
On Linux systems various information about the CPU ( or CPUs ) in the
computer can be gleaned from ```/proc/cpuinfo```. This module provides an
object oriented interface to that information for relatively simple use
in Raku programs.## Installation
Assuming you have a working Rakudo installation you should be able to
install this with *zef* :# From the source directory
zef install .# Remote installation
zef install Linux::Cpuinfo
## Support
Suggestions/patches are welcomed via github at https://github.com/jonathanstowe/Raku-Linux-Cpuinfo/issues
I'd be particularly interested in the /proc/cpuinfo from a variety of
architectures to test against, the ones that I already have can be seen
in t/procI'm not able to test on a wide variety of platforms so any help there
would be appreciated.## Licence
Please see the [LICENCE](LICENCE) file in the distribution.
© Jonathan Stowe 2015, 2016, 2017, 2019