File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed
doc/Type/Telemetry/Instrument Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ = begin pod
3
+
4
+ = TITLE class Telemetry::Instrument::Usage
5
+
6
+ = SUBTITLE Instrument for collecting getrusage data
7
+
8
+ class Telemetry::Instrument::Usage { }
9
+
10
+ B < Note: > This class is a Rakudo-specific feature and not standard Perl 6.
11
+
12
+ Objects of this class are generally not created by themselves, but rather
13
+ through making a L < snap|/type/Telemetry > shot.
14
+
15
+ = head2 Useful readings
16
+
17
+ This class provides the following generally usable readings (in alphabetical
18
+ order):
19
+
20
+ = item cpu
21
+
22
+ The total amount of CPU time (in microseconds), essentially the sum of
23
+ C < cpu-user > and C < cpu-sys > .
24
+
25
+ = item cpu-sys
26
+
27
+ The number of microseconds of CPU used by the system.
28
+
29
+ = item cpu-user
30
+
31
+ The number of microseconds of CPU used by the user program.
32
+
33
+ = item cpus
34
+
35
+ The number of CPU's active, essentially C < cpu > divided by C < wallclock > .
36
+
37
+ = item max-rss
38
+
39
+ The maximum resident set size (in KiB).
40
+
41
+ = item util%
42
+
43
+ Percentage of CPU utilization, essentially 100 * C < cpus > / number of CPU cores.
44
+
45
+ = item wallclock
46
+
47
+ The time the program has been executing (in microseconds).
48
+
49
+ = head Less useful readings
50
+
51
+ The following readings may or may not contain sensible information, mostly
52
+ depending on hardware and OS being used. Please check your local C < getrusage >
53
+ documentation for their exact meaning:
54
+
55
+ name getrusage struct name
56
+ ==== =====================
57
+ max-rss ru_maxrss
58
+ ix-rss ru_ixress
59
+ id-rss ru_idrss
60
+ is-rss ru_isrss
61
+ minf ru_minflt
62
+ majf ru_majflt
63
+ nswp ru_nswap
64
+ inb ru_inblock
65
+ outb ru_oublock
66
+ msnd ru_msgsnd
67
+ mrcv ru_msgrcv
68
+ nsig ru_nsignals
69
+ volcsw ru_nvcsw
70
+ invcsw ru_nivcsw
71
+
72
+ = end pod
73
+
74
+ # vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
You can’t perform that action at this time.
0 commit comments