sub snap

Documentation for sub snap, assembled from the following types:

class Telemetry

From Telemetry

(Telemetry) routine snap

multi sub snap(--> Nil)
multi sub snap(@s --> Nil)

The snap subroutine is shorthand for creating a new Telemetry object and pushing it to an array for later processing. It is exported by default.

use Telemetry;
my @t;
for ^5 {
    # do some stuff 
    LAST snap(@t);

If no array is specified, it will use an internal array for convenience.