Skip to content

Commit

Permalink
Allow for "use Telemetry <cpu wallclock>"
Browse files Browse the repository at this point in the history
Allow selective import of all subs that are available with :COLUMNS.
  • Loading branch information
lizmat committed Nov 4, 2017
1 parent c4d373c commit fea5612
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Telemetry.pm6
Expand Up @@ -846,6 +846,12 @@ HEADER

sub T () is export { Telemetry.new }

# Provide limited export capability --------------------------------------------

sub EXPORT(*@args) {
(EXPORT::COLUMNS::{ @args.map: "&" ~ * }:p).Map
}

# Make sure we tell the world if we're implicitely told to do so ---------------
END { if @snaps { snap; note report } }

Expand Down

0 comments on commit fea5612

Please sign in to comment.