1Unix::Statgrab::sg_swapU_ssetratCso(n3t)ributed Perl DocUunmiexn:t:aSttiaotngrab::sg_swap_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_swap_stats - container for libstatgrab swap space
7       statistics
8

DESCRIPTION

10       "Unix::Statgrab::sg_swap_stats" is a Perl package name providing
11       accessors to bundled libstatgrab sg_swap_stats <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> swap space
13       statistics.
14

METHODS

16   nentries
17       Returns the number of entries in the container.
18
19   systime
20       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
21       time measure the swap space statistics.
22
23   as_list
24       Deprecated alias of "fetchall_hash"
25
26   fetchall_hash
27       Returns all records from sg_swap_stats <http://www.i-
28       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> container as list
29       of hash containing each datum name as key and the datum as value.
30
31   fetchall_array
32       Returns all records from sg_swap_stats <http://www.i-
33       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> container as list
34       of arrays containing the values in following order:
35
36         (total free used systime)
37
38       in that order without leading headline.
39
40   fetchall_table
41       Returns all records from sg_swap_stats <http://www.i-
42       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> container as list
43       of arrays containing the values in following order:
44
45         (total free used systime)
46
47       in that order including leading headline.
48
49   fetchrow_arrayref($row = 0)
50       Returns one row as array containing values as above.
51
52   fetchall_arrayref
53       Returns all records from sg_swap_stats <http://www.i-
54       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> container as array
55       of arrays without header.
56
57   fetchrow_hashref($row = 0)
58       Returns one row as hash containing "{ total => $self.total($row), used
59       => ... }".
60
61   fetchall_hashref
62       Returns all records from sg_swap_stats <http://www.i-
63       scream.org/libstatgrab/docs/sg_get_mem_stats.3.html> container as array
64       of hashes.
65
66   colnames
67       Returns list of column names: "(total free used systime)"
68
69   total
70       The total swap space in bytes.
71
72   free
73       The used swap in bytes.
74
75   used
76       The free swap in bytes.
77

AUTHOR

79       Jens Rehsack, <rehsack AT cpan.org>
80
82       Copyright (C) 2012-2018 by Jens Rehsack
83
84       This library is free software; you can redistribute it and/or modify it
85       under the terms of the GNU Lesser General Public License as published
86       by the Free Software Foundation; either version 2.1 of the License, or
87       (at your option) any later version.
88
89
90
91perl v5.38.0                      2023-07-21  Unix::Statgrab::sg_swap_stats(3)
Impressum