1Unix::Statgrab::sg_cpu_UpseerrceCnotnst(r3i)buted Perl DUonciuxm:e:nSttaattigornab::sg_cpu_percents(3)
2
3
4

NAME

6       Unix::Statgrab::sg_cpu_percents - container for libstatgrab CPU percent
7       collection
8

DESCRIPTION

10       "Unix::Statgrab::sg_cpu_percents" is a Perl package name providing
11       accessors to bundled libstatgrab sg_cpu_percents <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_cpu_stats.3.html> data collection.
13

METHODS

15   nentries
16       Returns the number of entries in the container.
17
18   time_taken
19       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
20       time measure the CPU statistics.
21
22   as_list
23       Deprecated alias of "fetchall_hash"
24
25   fetchall_hash
26       Returns all records from sg_cpu_percents <http://www.i-
27       scream.org/libstatgrab/docs/sg_get_cpu_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_cpu_percents <http://www.i-
32       scream.org/libstatgrab/docs/sg_get_cpu_stats.3.html> container as list
33       of arrays containing the values in following order:
34
35         (user kernel idle iowait swap nice time_taken)
36
37       in that order without leading headline.
38
39   fetchall_table
40       Returns all records from sg_cpu_percents <http://www.i-
41       scream.org/libstatgrab/docs/sg_get_cpu_stats.3.html> container as list
42       of arrays containing the values in following order:
43
44         (user kernel idle iowait swap nice time_taken)
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_cpu_percents <http://www.i-
53       scream.org/libstatgrab/docs/sg_get_cpu_stats.3.html> container as array
54       of arrays without header.
55
56   fetchrow_hashref($row = 0)
57       Returns one row as hash containing "{ user => $self.user($row), kernel
58       => ... }".
59
60   fetchall_hashref
61       Returns all records from sg_cpu_percents <http://www.i-
62       scream.org/libstatgrab/docs/sg_get_cpu_stats.3.html> container as array
63       of hashes.
64
65   colnames
66       Returns list of column names: "(user kernel idle iowait swap nice
67       time_taken)"
68
69   user
70       Percentage of CPU times spent in user mode
71
72   kernel
73       Percentage of CPU times spent in kernel mode
74
75   idle
76       Percentage of CPU times being idle
77
78   iowait
79       Percentage of CPU times waiting for I/O
80
81   swap
82       Percentage of CPU times spent for swapping
83
84   nice
85       Percentage of CPU times spent in user mode with nice priority
86

AUTHOR

88       Jens Rehsack, <rehsack AT cpan.org>
89
91       Copyright (C) 2012-2018 by Jens Rehsack
92
93       This library is free software; you can redistribute it and/or modify it
94       under the terms of the GNU Lesser General Public License as published
95       by the Free Software Foundation; either version 2.1 of the License, or
96       (at your option) any later version.
97
98
99
100perl v5.30.0                      2019-07-26Unix::Statgrab::sg_cpu_percents(3)
Impressum