← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:50 2015

Filename/usr/lib/x86_64-linux-gnu/perl/5.20/MIME/Base64.pm
StatementsExecuted 14 statements in 368µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs23µsMIME::Base64::::BEGIN@3MIME::Base64::BEGIN@3
1117µs45µ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
3226µs234µs
# spent 23µs (12+11) within MIME::Base64::BEGIN@3 which was called: # once (12µs+11µs) by C4::Letters::BEGIN@23 at line 3
use strict;
# spent 23µs making 1 call to MIME::Base64::BEGIN@3 # spent 11µs making 1 call to strict::import
42151µs283µs
# spent 45µs (7+38) within MIME::Base64::BEGIN@4 which was called: # once (7µs+38µs) by C4::Letters::BEGIN@23 at line 4
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
# spent 45µs making 1 call to MIME::Base64::BEGIN@4 # spent 38µs making 1 call to vars::import
5
61600nsrequire Exporter;
716µs@ISA = qw(Exporter);
81600ns@EXPORT = qw(encode_base64 decode_base64);
91400ns@EXPORT_OK = qw(encode_base64url decode_base64url encoded_base64_length decoded_base64_length);
10
111100ns$VERSION = '3.14';
12
1311µsrequire XSLoader;
141176µs1169µsXSLoader::load('MIME::Base64', $VERSION);
# spent 169µs making 1 call to XSLoader::load
15
161900ns*encode = \&encode_base64;
171200ns*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
3315µs1;
34
35__END__