Unix::S...ge_stats(3)

πŸ“¦ version 0.112, in fedora 43

✨ 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 (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