← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Sun Nov 5 03:09:29 2017
Reported on Mon Nov 6 13:20:46 2017

Filename/usr/local/lib/perl5/5.24/mach/MIME/Base64.pm
StatementsExecuted 14 statements in 908µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
701113.0ms13.0msMIME::Base64::::decode_base64MIME::Base64::decode_base64 (xsub)
11143µs55µsMIME::Base64::::BEGIN@3MIME::Base64::BEGIN@3
11118µs190µsMIME::Base64::::BEGIN@4MIME::Base64::BEGIN@4
0000s0sMIME::Base64::::decode_base64urlMIME::Base64::decode_base64url
0000s0sMIME::Base64::::encode_base64urlMIME::Base64::encode_base64url
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package MIME::Base64;
2
3266µs267µs
# spent 55µs (43+12) within MIME::Base64::BEGIN@3 which was called: # once (43µs+12µs) by Mail::SpamAssassin::Util::BEGIN@84 at line 3
use strict;
# spent 55µs making 1 call to MIME::Base64::BEGIN@3 # spent 12µs making 1 call to strict::import
42412µs2361µs
# spent 190µs (18+171) within MIME::Base64::BEGIN@4 which was called: # once (18µs+171µs) by Mail::SpamAssassin::Util::BEGIN@84 at line 4
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
# spent 190µs making 1 call to MIME::Base64::BEGIN@4 # spent 171µs making 1 call to vars::import
5
612µsrequire Exporter;
7112µs@ISA = qw(Exporter);
813µs@EXPORT = qw(encode_base64 decode_base64);
912µs@EXPORT_OK = qw(encode_base64url decode_base64url encoded_base64_length decoded_base64_length);
10
1112µs$VERSION = '3.15';
12
1312µsrequire XSLoader;
141384µs1368µsXSLoader::load('MIME::Base64', $VERSION);
# spent 368µs making 1 call to XSLoader::load
15
1613µs*encode = \&encode_base64;
1712µs*decode = \&decode_base64;
18
19sub encode_base64url {
20 my $e = encode_base64(shift, "");
21 $e =~ s/=+\z//;
22 $e =~ tr[+/][-_];
23 return $e;
24}
25
26sub decode_base64url {
27 my $s = shift;
28 $s =~ tr[-_][+/];
29 $s .= '=' while length($s) % 4;
30 return decode_base64($s);
31}
32
33118µs1;
34
35__END__
 
# spent 13.0ms within MIME::Base64::decode_base64 which was called 70 times, avg 185µs/call: # 70 times (13.0ms+0s) by Mail::SpamAssassin::Util::base64_decode at line 705 of Mail/SpamAssassin/Util.pm, avg 185µs/call
sub MIME::Base64::decode_base64; # xsub