@@ -16,8 +16,8 @@ as well as on an instantiated C<Telemetry> object. When loading it as a
16
16
module with the C < :COLUMNS > named parameter, these are also available as
17
17
standalone subroutines.
18
18
19
- = begin code
20
- use Telemetry; # imports default subroutines: T, snap, snapper, periods, report
19
+ = begin code :skip-test
20
+ use Telemetry; # imports default subroutines: T, snap, snapper, periods, report
21
21
use Telemetry :COLUMNS; # imports all of the possible columns of report
22
22
use Telemetry < cpu wallclock snap >; # only imports cpu, wallclock and snap
23
23
= end code
@@ -157,14 +157,16 @@ The C<periods> subroutine processes an array of C<Telemetry> objects and
157
157
generates a L < Seq > of C < Telemetry::Period > objects out of that. It is exported
158
158
by default.
159
159
160
- = begin code
160
+ = begin code :preamble<my @t;use Telemetry;>
161
161
.say for periods(@t);
162
- ====================
163
- 164 / 160
164
- 23 / 21
165
- 17 / 17
166
- 15 / 16
167
- 29 / 28
162
+
163
+ # OUTPUT:
164
+ # ====================
165
+ # 164 / 160
166
+ # 23 / 21
167
+ # 17 / 17
168
+ # 15 / 16
169
+ # 29 / 28
168
170
= end code
169
171
170
172
If no array is specified, it will use the internal array of C < snap > without
@@ -178,12 +180,14 @@ for ^5 {
178
180
LAST snap;
179
181
}
180
182
.say for periods;
181
- ====================
182
- 172 / 168
183
- 24 / 21
184
- 17 / 18
185
- 17 / 16
186
- 27 / 27
183
+
184
+ # OUTPUT:
185
+ # ====================
186
+ # 172 / 168
187
+ # 24 / 21
188
+ # 17 / 18
189
+ # 17 / 16
190
+ # 27 / 27
187
191
= end code
188
192
189
193
If only one C < snap > was done, another C < snap > will be done to create at least
@@ -207,6 +211,7 @@ the abbreviated column name (e.g. C<gw>). If not specified, defaults to
207
211
what is specified in the C < RAKUDO_REPORT_COLUMNS > environment variable.
208
212
If that is not set either, defaults to:
209
213
214
+ = for code :skip-test
210
215
wallclock util% max-rss gw gtc tw ttc aw atc
211
216
212
217
= item :header-repeat
@@ -225,9 +230,6 @@ If that is not set either, defaults to True.
225
230
If there are C < snap > s available in the internal array at the end of the
226
231
program, then C < report > will be automatically generated and printed on C < STDERR > .
227
232
228
- = head1 See Also
229
-
230
- L < Telemetry::Period >
231
- L < snapper >
233
+ See Also: L < Telemetry::Period > , L < snapper >
232
234
233
235
= end pod
0 commit comments