Skip to content

Commit

Permalink
Pass more example compilation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 12, 2017
1 parent 5dae820 commit 0fa04af
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions doc/Type/Telemetry.pod6
Expand Up @@ -19,7 +19,7 @@ as well as on an instantiated C<Telemetry> object. When loading it as a
module with the C<:COLUMNS> named parameter, these are also available as
standalone subroutines.
=begin code :skip-test
=begin code
use Telemetry; # imports default subroutines: T, snap, snapper, periods, report
use Telemetry :COLUMNS; # imports all of the possible columns of report
use Telemetry < cpu wallclock snap >; # only imports cpu, wallclock and snap
Expand All @@ -40,6 +40,7 @@ fields.
=head2 method affinity-tasks-completed
=for code :preamble<use Telemetry;>
multi method affinity-tasks-completed(Telemetry:U: --> Int)
multi method affinity-tasks-completed(Telemetry:D: --> Int)
Expand All @@ -49,6 +50,7 @@ Returns the number of tasks completed in affinity threads in this period.
=head2 method affinity-tasks-queued
=for code :preamble<use Telemetry;>
multi method affinity-tasks-queued(Telemetry:U: --> Int)
multi method affinity-tasks-queued(Telemetry:D: --> Int)
Expand All @@ -58,6 +60,7 @@ Returns the number of tasks queued for execution in affinity threads.
=head2 method affinity-workers
=for code :preamble<use Telemetry;>
multi method affinity-workers(Telemetry:U: --> Int)
multi method affinity-workers(Telemetry:D: --> Int)
Expand All @@ -67,6 +70,7 @@ Returns the number of affinity threads added in this period.
=head2 method cpu
=for code :preamble<use Telemetry;>
multi method cpu(Telemetry:U: --> Int)
multi method cpu(Telemetry:D: --> Int)
Expand All @@ -77,6 +81,7 @@ essentially the sum of C<cpu-user> and C<cpu-sys>.
=head2 method cpu-user
=for code :preamble<use Telemetry;>
multi method cpu-user(Telemetry:U: --> Int)
multi method cpu-user(Telemetry:D: --> Int)
Expand All @@ -87,6 +92,7 @@ Returns the amount of CPU time spent on executing user code of this period
=head2 method cpu-sys
=for code :preamble<use Telemetry;>
multi method cpu-sys(Telemetry:U: --> Int)
multi method cpu-sys(Telemetry:D: --> Int)
Expand All @@ -97,6 +103,7 @@ microseconds).
=head2 method general-tasks-completed
=for code :preamble<use Telemetry;>
multi method general-tasks-completed(Telemetry:U: --> Int)
multi method general-tasks-completed(Telemetry:D: --> Int)
Expand All @@ -106,6 +113,7 @@ Returns the number of tasks completed in general worker threads in this period.
=head2 method general-tasks-queued
=for code :preamble<use Telemetry;>
multi method general-tasks-queued(Telemetry:U: --> Int)
multi method general-tasks-queued(Telemetry:D: --> Int)
Expand All @@ -116,6 +124,7 @@ in this period.
=head2 method general-workers
=for code :preamble<use Telemetry;>
multi method general-workers(Telemetry:U: --> Int)
multi method general-workers(Telemetry:D: --> Int)
Expand All @@ -125,6 +134,7 @@ Returns the number of general worker threads that were added in this period.
=head2 method max-rss
=for code :preamble<use Telemetry;>
multi method max-rss(Telemetry:U: --> Int)
multi method max-rss(Telemetry:D: --> Int)
Expand All @@ -134,6 +144,7 @@ Returns the maximum resident set size increase for this period (in Kbytes).
=head2 method supervisor
=for code :preamble<use Telemetry;>
multi method supervisor(Telemetry:U: --> Int)
multi method supervisor(Telemetry:D: --> Int)
Expand All @@ -143,6 +154,7 @@ Returns The number of supervisor threads running, usually C<0> or C<1>.
=head2 method timer-tasks-completed
=for code :preamble<use Telemetry;>
multi method timer-tasks-completed(Telemetry:U: --> Int)
multi method timer-tasks-completed(Telemetry:D: --> Int)
Expand All @@ -152,6 +164,7 @@ Returns the number of tasks completed in timer worker threads.
=head2 method timer-tasks-queued
=for code :preamble<use Telemetry;>
multi method timer-tasks-queued(Telemetry:U: --> Int)
multi method timer-tasks-queued(Telemetry:D: --> Int)
Expand All @@ -161,6 +174,7 @@ Returns the number of tasks queued for execution in timer worker threads.
=head2 method timer-workers
=for code :preamble<use Telemetry;>
multi method timer-workers(Telemetry:U: --> Int)
multi method timer-workers(Telemetry:D: --> Int)
Expand All @@ -170,6 +184,7 @@ Returns the number of timer worker threads.
=head2 method wallclock
=for code :preamble<use Telemetry;>
multi method wallclock(Telemetry:U: --> Int)
multi method wallclock(Telemetry:D: --> Int)
Expand Down Expand Up @@ -289,7 +304,7 @@ the abbreviated column name (e.g. C<gw>). If not specified, defaults to
what is specified in the C<RAKUDO_REPORT_COLUMNS> environment variable.
If that is not set either, defaults to:
=begin code :skip-test
=begin code :lang<text>
wallclock util% max-rss gw gtc tw ttc aw atc
=end code
Expand Down

0 comments on commit 0fa04af

Please sign in to comment.