1Unix::Statgrab::sg_mem_UssteartsC(o3n)tributed Perl DocuUmneinxt:a:tSitoantgrab::sg_mem_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_mem_stats - container for libstatgrab memory
7       statistics
8

DESCRIPTION

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

METHODS

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

AUTHOR

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