Top Level :: System
:: statgrab
:: 2.2.0
statgrab 2.2.0
| Package Information |
| Summary |
System statistics via libstatgrab |
| Maintainers |
Ilia Alshanetsky <
ilia at php dot net >
(lead)
[details]
|
| License |
PHP License 3.01 |
| Description |
A PHP extension wrapping libstatgrab (https://libstatgrab.org), the
cross-platform system-statistics library. Exposes CPU, memory, swap,
disk I/O, filesystem, network, page, process, user, and host metrics
through both a procedural API (the original 2006 surface) and a
modern Statgrab class.
Requires libstatgrab >= 0.92 and PHP >= 8.0. |
Release notes
Version 2.2.0
(stable)
|
Bundled-libstatgrab support and leak fixes.
- Vendored libstatgrab 0.92.1 with one local patch fixing an off-by-one in sg_destroy_globals that leaked the user-stats vector (~1.1 KB) at every process exit. Patch is LGPL 2.1+, lives under vendor/libstatgrab/patches/, submitted upstream. - New --with-statgrab=bundled configure option statically links the patched copy. System libstatgrab remains the default. - Fixed our own 144-byte-per-call leak in sg_cpu_percent_usage / Statgrab::cpu: sg_get_cpu_percents_r returns owned memory and we weren't freeing it via sg_free_stats_buf. - LICENSE.libstatgrab (LGPL 2.1) ships next to LICENSE (PHP-3.01); the two licenses cohabit cleanly.
See CHANGELOG.md for the full list. |
|
| Dependencies for release 2.2.0 |
|
PHP Version: PHP version 8.99.99 or older PHP Version: PHP 8.0.0 or newer PEAR Package: PEAR 1.10.0 or newer
|
|
|