Skip to content

Commit

Permalink
Tweak the T:I:Usage.preamble + allow util% in R_R_COLUMNS
Browse files Browse the repository at this point in the history
- also show final memory size for easy observation
- make sure you can specify a column name with % in RAKUDO_REPORT_COLUMNS
  • Loading branch information
lizmat committed Nov 11, 2017
1 parent 14fbb5e commit 3e4ccce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Telemetry.pm6
Expand Up @@ -110,7 +110,7 @@ class Telemetry::Instrument::Usage does Telemetry::Instrument {

method preamble($first, $last, $total, @snaps --> Str:D) {
qq:to/HEADER/.chomp;
Initial Size: { @snaps[0]<max-rss>.fmt('%9d') } Kbytes
Initial/Final Size: { $first<max-rss> } / { $last<max-rss> } Kbytes
Total Time: { ($total<wallclock> / 1000000).fmt('%9.2f') } seconds
Total CPU Usage: { ($total<cpu> / 1000000).fmt('%9.2f') } seconds
HEADER
Expand Down Expand Up @@ -798,7 +798,7 @@ HEADER
# determine columns to be displayed
unless @columns {
if %*ENV<RAKUDO_REPORT_COLUMNS> -> $rrc {
@columns = $rrc.comb( /<[\w-]>+/ );
@columns = $rrc.comb( /<[\w%-]>+/ );
}
else {
@columns.append(.columns) for $sampler.instruments;
Expand Down

0 comments on commit 3e4ccce

Please sign in to comment.