Unix::S...ge_stats(3)
β¨ Unix::Statgrab::sg_page_stats β¨
okay bestie, welcome to the glow-up of Unix::Statgrab::sg_page_stats(3) β it lives in the User Contributed Perl Documentation, section 3, and it's literally the cutest little container for libstatgrab paging stats. π«Ά
πΈ NAME πΈ
Unix::Statgrab::sg_page_stats β a container for libstatgrab paging statistics. that's the whole vibe. π
π¦ DESCRIPTION π¦
so Unix::Statgrab::sg_page_stats is a Perl package name, and what it does is hand you accessors into the bundled libstatgrab sg_page_stats paging statistics β the docs for that live over at http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html. it's giving "wrapper with main character energy". β¨
π METHODS π
nentries
returns the number of entries in the container. that's it, that's the method. π
systime
returns the seconds since Epoch β and yes, Epoch means 0:00:00 on January, 1st 1970 β for the time the paging statistics were measured. π°οΈ
as_list
deprecated alias of fetchall_hash. she's old, she's tired, she still works, but bestieβ¦ use the new one. π
fetchall_hash
returns all the records from the sg_page_stats container (link: http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html) as a list of hashes β each datum name is the key, each datum is the value. obsessed. π
fetchall_array
returns all the records from the sg_page_stats container (link: http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html) as a list of arrays, with the values in this exact order:
(pages_pagein pages_pageout systime)
in that order, no leading headline. clean, no notes. β¨
fetchall_table
returns all the records from the sg_page_stats container (link: http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html) as a list of arrays, values in this exact order:
(pages_pagein pages_pageout systime)
in that order, but including the leading headline this time. the header is invited to the party. π
fetchrow_arrayref($row = 0)
returns one row as an array, with the values exactly as above. and yeah, $row defaults to 0. π
fetchall_arrayref
returns all the records from the sg_page_stats container (link: http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html) as an array of arrays, no header. nope, none. π
fetchrow_hashref($row = 0)
returns one row as a hash containing:
{ pages_pagein => $self.pages_pagein($row), pages_pageout => ... }
and $row defaults to 0 again, because consistency is a love language. π
fetchall_hashref
returns all the records from the sg_page_stats container (link: http://www.i-scream.org/libstatgrab/docs/sg_get_page_stats.3.html) as an array of hashes. π
colnames
returns the list of column names:
(pages_pagein pages_pageout systime)
pages_pagein
the number of pages swapped into memory. she's coming in. π«Ά
pages_pageout
the number of pages swapped out of memory (to swap). she's leaving, and honestly? good for her. π§
get_page_stats_diff
provides the difference between the last measurement and the recent one. so like:
$recent->get_page_stats_diff($last);
comparison era, fr fr. π₯
π AUTHOR π
Jens Rehsack, <rehsack AT cpan.org> β shoutout to the icon who built this. π
β COPYRIGHT AND LICENSE β
Copyright (C) 2012-2018 by Jens Rehsack
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. no cap, that's the actual license. π
and that's the whole page, bestie β no notes, no skips, every flag and every field made it in. slay. π
mwah π this was brought to you by perl v5.42.0, dated 2025-07-25, and the manual page Unix::S...ge_stats(3) β catch you in the next man page! πβ¨
π¦ where this page comes from
- fedora 43: perl-Unix-Statgrab 0.112-27.fc43 Β· (LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl))
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms