system_resources_2
Provides easy access to system resources (CPU load, memory usage).
2.2.2
306K downloads/mo
#682 most downloaded on pub.dev
serverpod/system_resources_2
What this package is like to depend on
Last release 6 months ago
06 Feb 2026
Release timing varies
gaps range from 8 days to 3.4 years
Most releases are documented
notes for 4 of 5 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
5 releases · first in 2022
4 releases in the last 12 months
see the full history below
Release timeline
5 releases · Sep 2022 to Feb 2026Releases
latest 5-
2.2.206 Feb 2026Release notes
Open source →What's Changed
- fix: resolve pub cache fallback by discovering versioned package directory by @thiagoalmeidasa in #17
Full Changelog: v2.2.1...v2.2.2
Release notes
Open source →- Fix pub cache fallback path missing version suffix for macOS native library loading in AOT-compiled binaries
-
2.2.106 Feb 2026Release notes
Open source →What's Changed
- fix: log warning when running on unsupported platform (Windows) by @thiagoalmeidasa in #16
Full Changelog: v2.2.0...v2.2.1
Release notes
Open source →- Log warning to stderr when running on Windows or other unsupported platforms
-
2.2.006 Feb 2026Release notes
Open source →What's Changed
- feat: replace Linux FFI with pure Dart cgroup implementation by @thiagoalmeidasa in #15
Full Changelog: v2.1.2...v2.2.0
Release notes
Open source →Pure Dart on Linux
- Hybrid architecture: Linux now uses pure Dart (reading
/procand cgroup filesystems directly), eliminating the need for native.sobinaries. macOS continues to use FFI with native.dylibbinaries. - Removed Linux native binaries:
libsysres-linux-*.sofiles are no longer shipped, reducing package size and improving compatibility across Linux architectures.
Cgroup v1 Support
- Cgroup v1 (legacy hierarchy): CPU and memory monitoring now works on systems using cgroup v1 in addition to cgroup v2.
New APIs
cgroupVersion()- Returns detected cgroup version (v1, v2, or none)cpuLoad()- CPU load as a fraction of the cgroup limit (delta-based)cpuUsageMillicores()- CPU usage in millicores (delta-based)cpuUsageMicros()- Raw cumulative CPU usage in microsecondscpuLimitMillicores()- CPU limit in millicoresclearState()- Clears all cached platform/CPU state (useful for testing)- New exported enums:
CgroupVersion,DetectedPlatform
Bug Fixes
- Resolve process's actual cgroup path for memory metrics on native Linux hosts
- Unify CPU load normalization to respect
SYSRES_CPU_CORESenvironment variable - Use
DynamicLibrary.opendirectly instead ofFile.existsSyncfor better compatibility - Improve native library compatibility with older glibc versions
-
2.1.129 Jan 2026Release notes
Open source →What's Changed
- ci: use -f flag in publish workflow to skip interactive prompt by @thiagoalmeidasa in #8
- chore: pin GitHub Actions to commit SHAs by @thiagoalmeidasa in #9
- fix: rename docs/ to doc/ for Dart package conventions by @thiagoalmeidasa in #10
Full Changelog: v2.1.0...v2.1.1
Release notes
Open source →- Fix package directory structure to follow Dart conventions (rename
docs/todoc/)
-
2.0.002 Sep 2022Nothing published for this version