1GTop(3) User Contributed Perl Documentation GTop(3)
2
3
4
6 GTop - Perl interface to libgtop
7
9 use GTop ();
10 my $gtop = GTop->new;
11
13 Perl interface to libgtop:
14
15 http://ftp.gnome.org/pub/gnome/sources/libgtop/
16
18 GTop::Cpu
19 my $cpu = $gtop->cpu;
20
21 flags
22 my $flags = $cpu->flags;
23
24 total
25 my $total = $cpu->total;
26
27 user
28 my $user = $cpu->user;
29
30 nice
31 my $nice = $cpu->nice;
32
33 sys
34 my $sys = $cpu->sys;
35
36 idle
37 my $idle = $cpu->idle;
38
39 frequency
40 my $frequency = $cpu->frequency;
41
42 GTop::Fsusage
43 my $fsusage = $gtop->fsusage($disk);
44
45 flags
46 my $flags = $fsusage->flags;
47
48 blocks
49 my $blocks = $fsusage->blocks;
50
51 bfree
52 my $bfree = $fsusage->bfree;
53
54 bavail
55 my $bavail = $fsusage->bavail;
56
57 files
58 my $files = $fsusage->files;
59
60 ffree
61 my $ffree = $fsusage->ffree;
62
63 GTop::Loadavg
64 my $loadavg = $gtop->loadavg;
65
66 flags
67 my $flags = $loadavg->flags;
68
69 nr_running
70 my $nr_running = $loadavg->nr_running;
71
72 nr_tasks
73 my $nr_tasks = $loadavg->nr_tasks;
74
75 last_pid
76 my $last_pid = $loadavg->last_pid;
77
78 GTop::Mem
79 my $mem = $gtop->mem;
80
81 flags
82 my $flags = $mem->flags;
83
84 total
85 my $total = $mem->total;
86
87 used
88 my $used = $mem->used;
89
90 free
91 my $free = $mem->free;
92
93 shared
94 my $shared = $mem->shared;
95
96 buffer
97 my $buffer = $mem->buffer;
98
99 cached
100 my $cached = $mem->cached;
101
102 user
103 my $user = $mem->user;
104
105 locked
106 my $locked = $mem->locked;
107
108 GTop::Mountlist
109 my $mountlist = $gtop->mountlist($all_fs);
110
111 flags
112 my $flags = $mountlist->flags;
113
114 number
115 my $number = $mountlist->number;
116
117 total
118 my $total = $mountlist->total;
119
120 size
121 my $size = $mountlist->size;
122
123 GTop::Netload
124 my $netload = $gtop->netload($interface);
125
126 flags
127 my $flags = $netload->flags;
128
129 if_flags
130 my $if_flags = $netload->if_flags;
131
132 mtu
133 my $mtu = $netload->mtu;
134
135 subnet
136 my $subnet = $netload->subnet;
137
138 address
139 my $address = $netload->address;
140
141 packets_in
142 my $packets_in = $netload->packets_in;
143
144 packets_out
145 my $packets_out = $netload->packets_out;
146
147 packets_total
148 my $packets_total = $netload->packets_total;
149
150 bytes_in
151 my $bytes_in = $netload->bytes_in;
152
153 bytes_out
154 my $bytes_out = $netload->bytes_out;
155
156 bytes_total
157 my $bytes_total = $netload->bytes_total;
158
159 errors_in
160 my $errors_in = $netload->errors_in;
161
162 errors_out
163 my $errors_out = $netload->errors_out;
164
165 errors_total
166 my $errors_total = $netload->errors_total;
167
168 collisions
169 my $collisions = $netload->collisions;
170
171 GTop::ProcArgs
172 my $proc_args = $gtop->proc_args($pid);
173
174 flags
175 my $flags = $proc_args->flags;
176
177 size
178 my $size = $proc_args->size;
179
180 GTop::ProcMap
181 my $proc_map = $gtop->proc_map($pid);
182
183 flags
184 my $flags = $proc_map->flags;
185
186 number
187 my $number = $proc_map->number;
188
189 total
190 my $total = $proc_map->total;
191
192 size
193 my $size = $proc_map->size;
194
195 GTop::ProcMem
196 my $proc_mem = $gtop->proc_mem($pid);
197
198 flags
199 my $flags = $proc_mem->flags;
200
201 size
202 my $size = $proc_mem->size;
203
204 vsize
205 my $vsize = $proc_mem->vsize;
206
207 resident
208 my $resident = $proc_mem->resident;
209
210 share
211 my $share = $proc_mem->share;
212
213 rss
214 my $rss = $proc_mem->rss;
215
216 rss_rlim
217 my $rss_rlim = $proc_mem->rss_rlim;
218
219 GTop::ProcSegment
220 my $proc_segment = $gtop->proc_segment($pid);
221
222 flags
223 my $flags = $proc_segment->flags;
224
225 text_rss
226 my $text_rss = $proc_segment->text_rss;
227
228 shlib_rss
229 my $shlib_rss = $proc_segment->shlib_rss;
230
231 data_rss
232 my $data_rss = $proc_segment->data_rss;
233
234 stack_rss
235 my $stack_rss = $proc_segment->stack_rss;
236
237 dirty_size
238 my $dirty_size = $proc_segment->dirty_size;
239
240 start_code
241 my $start_code = $proc_segment->start_code;
242
243 end_code
244 my $end_code = $proc_segment->end_code;
245
246 start_stack
247 my $start_stack = $proc_segment->start_stack;
248
249 GTop::ProcState
250 my $proc_state = $gtop->proc_state($pid);
251
252 flags
253 my $flags = $proc_state->flags;
254
255 GTop::ProcTime
256 my $proc_time = $gtop->proc_time($pid);
257
258 flags
259 my $flags = $proc_time->flags;
260
261 start_time
262 my $start_time = $proc_time->start_time;
263
264 rtime
265 my $rtime = $proc_time->rtime;
266
267 utime
268 my $utime = $proc_time->utime;
269
270 stime
271 my $stime = $proc_time->stime;
272
273 cutime
274 my $cutime = $proc_time->cutime;
275
276 cstime
277 my $cstime = $proc_time->cstime;
278
279 timeout
280 my $timeout = $proc_time->timeout;
281
282 it_real_value
283 my $it_real_value = $proc_time->it_real_value;
284
285 frequency
286 my $frequency = $proc_time->frequency;
287
288 GTop::ProcUid
289 my $proc_uid = $gtop->proc_uid($pid);
290
291 flags
292 my $flags = $proc_uid->flags;
293
294 uid
295 my $uid = $proc_uid->uid;
296
297 euid
298 my $euid = $proc_uid->euid;
299
300 gid
301 my $gid = $proc_uid->gid;
302
303 egid
304 my $egid = $proc_uid->egid;
305
306 pid
307 my $pid = $proc_uid->pid;
308
309 ppid
310 my $ppid = $proc_uid->ppid;
311
312 pgrp
313 my $pgrp = $proc_uid->pgrp;
314
315 session
316 my $session = $proc_uid->session;
317
318 tty
319 my $tty = $proc_uid->tty;
320
321 tpgid
322 my $tpgid = $proc_uid->tpgid;
323
324 priority
325 my $priority = $proc_uid->priority;
326
327 nice
328 my $nice = $proc_uid->nice;
329
330 GTop::Proclist
331 my $proclist = $gtop->proclist;
332
333 flags
334 my $flags = $proclist->flags;
335
336 number
337 my $number = $proclist->number;
338
339 total
340 my $total = $proclist->total;
341
342 size
343 my $size = $proclist->size;
344
345 GTop::Swap
346 my $swap = $gtop->swap;
347
348 flags
349 my $flags = $swap->flags;
350
351 total
352 my $total = $swap->total;
353
354 used
355 my $used = $swap->used;
356
357 free
358 my $free = $swap->free;
359
360 pagein
361 my $pagein = $swap->pagein;
362
363 pageout
364 my $pageout = $swap->pageout;
365
366 GTop::Uptime
367 my $uptime = $gtop->uptime;
368
369 flags
370 my $flags = $uptime->flags;
371
373 Currently maintained by Malcolm J Harwood <mjh@cpan.org>.
374
375 Previously maintained by Stas Bekman <stas@stason.org>.
376
377 Doug MacEachern wrote the original version.
378
379
380
381perl v5.32.0 2020-07-28 GTop(3)