Login  |  Packages  |  Support  |  Bugs

Return

Changelog for statgrab
Release What has changed?
2.2.0 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.
0.6.0 1) Added support for sg_get_fs_stats()

0.5.0 1) Allow compilation against libstatgrab 0.12
2) Fixed compilation on FreeBSD systems
3) Unflip network stats and incremental network stats
4) Fixed a few spelling mistakes

0.4 1) Fixed config.m4, which caused the statgrab library not to be detected
on some systems.
0.3 1) Make statgrab extension work with libstatgrab 0.10 (now required).
2) Change function prefixes to sg_ from statg_.
3) Renamed sg_process_stats() to sg_process_count().
4) Added sg_process_stats() that can now return detailed information about
all currently running processes.
0.2 Updated interface with new functionality avaliable in libstatgrab 0.9
(old versions of libstatgrab are still supported).
Added statg_network_iface_stats() function to get interface information.
Added additional information to network functions.
0.1 Initial release

Return

PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Sep 03 10:50:24 2025 UTC
Bandwidth and hardware provided by: pair Networks