← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 20:36:06 2020
Reported on Wed Feb 12 21:42:25 2020

Filename/usr/lib/x86_64-linux-gnu/perl/5.28/lib.pm
StatementsExecuted 35 statements in 550µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111649µs718µslib::::BEGIN@6lib::BEGIN@6
11132µs50µslib::::importlib::import
1117µs7µslib::::CORE:ftislib::CORE:ftis (opcode)
6516µs6µslib::::CORE:ftdirlib::CORE:ftdir (opcode)
1115µs7µslib::::BEGIN@8lib::BEGIN@8
1113µs3µslib::::_get_dirslib::_get_dirs
111400ns400nslib::::CORE:matchlib::CORE:match (opcode)
0000s0slib::::unimportlib::unimport
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package lib;
2
3# THIS FILE IS AUTOMATICALLY GENERATED FROM lib_pm.PL.
4# ANY CHANGES TO THIS FILE WILL BE OVERWRITTEN BY THE NEXT PERL BUILD.
5
6291µs2726µs
# spent 718µs (649+69) within lib::BEGIN@6 which was called: # once (649µs+69µs) by main::BEGIN@5 at line 6
use Config;
# spent 718µs making 1 call to lib::BEGIN@6 # spent 8µs making 1 call to Config::import
7
82390µs29µs
# spent 7µs (5+2) within lib::BEGIN@8 which was called: # once (5µs+2µs) by main::BEGIN@5 at line 8
use strict;
# spent 7µs making 1 call to lib::BEGIN@8 # spent 2µs making 1 call to strict::import
9
1015µs13µsmy $archname = $Config{archname};
# spent 3µs making 1 call to Config::FETCH
1112µs11µsmy $version = $Config{version};
# spent 1µs making 1 call to Config::FETCH
1214µs11µsmy @inc_version_list = reverse split / /, $Config{inc_version_list};
# spent 1µs making 1 call to Config::FETCH
13
1411µsour @ORIG_INC = @INC; # take a handy copy of 'original' value
151200nsour $VERSION = '0.64';
16
17
# spent 50µs (32+18) within lib::import which was called: # once (32µs+18µs) by main::BEGIN@5 at line 5 of /root/tor-browser-build/rbm/rbm
sub import {
181100ns shift;
19
201100ns my %names;
211500ns foreach (reverse @_) {
221200ns my $path = $_; # we'll be modifying it, so break the alias
231200ns if ($path eq '') {
24 require Carp;
25 Carp::carp("Empty compile time value given to use lib");
26 }
27
28117µs39µs if ($path !~ /\.par$/i && -e $path && ! -d _) {
# spent 7µs making 1 call to lib::CORE:ftis # spent 800ns making 1 call to lib::CORE:ftdir # spent 400ns making 1 call to lib::CORE:match
29 require Carp;
30 Carp::carp("Parameter to use lib must be directory, not file");
31 }
321900ns unshift(@INC, $path);
33 # Add any previous version directories we found at configure time
341400ns foreach my $incver (@inc_version_list)
35 {
362700ns my $dir = "$path/$incver";
3725µs22µs unshift(@INC, $dir) if -d $dir;
# spent 2µs making 2 calls to lib::CORE:ftdir, avg 1µs/call
38 }
39 # Put a corresponding archlib directory in front of $path if it
40 # looks like $path has an archlib directory below it.
4112µs13µs my($arch_auto_dir, $arch_dir, $version_dir, $version_arch_dir)
# spent 3µs making 1 call to lib::_get_dirs
42 = _get_dirs($path);
4313µs11µs unshift(@INC, $arch_dir) if -d $arch_auto_dir;
# spent 1µs making 1 call to lib::CORE:ftdir
4413µs11µs unshift(@INC, $version_dir) if -d $version_dir;
# spent 1µs making 1 call to lib::CORE:ftdir
4513µs1700ns unshift(@INC, $version_arch_dir) if -d $version_arch_dir;
# spent 700ns making 1 call to lib::CORE:ftdir
46 }
47
48 # remove trailing duplicates
4917µs @INC = grep { ++$names{$_} == 1 } @INC;
5013µs return;
51}
52
53sub unimport {
54 shift;
55
56 my %names;
57 foreach my $path (@_) {
58 my($arch_auto_dir, $arch_dir, $version_dir, $version_arch_dir)
59 = _get_dirs($path);
60 ++$names{$path};
61 ++$names{$arch_dir} if -d $arch_auto_dir;
62 ++$names{$version_dir} if -d $version_dir;
63 ++$names{$version_arch_dir} if -d $version_arch_dir;
64 }
65
66 # Remove ALL instances of each named directory.
67 @INC = grep { !exists $names{$_} } @INC;
68 return;
69}
70
71
# spent 3µs within lib::_get_dirs which was called: # once (3µs+0s) by lib::import at line 41
sub _get_dirs {
721400ns my($dir) = @_;
731200ns my($arch_auto_dir, $arch_dir, $version_dir, $version_arch_dir);
74
751400ns $arch_auto_dir = "$dir/$archname/auto";
761400ns $arch_dir = "$dir/$archname";
771300ns $version_dir = "$dir/$version";
781300ns $version_arch_dir = "$dir/$version/$archname";
79
8012µs return($arch_auto_dir, $arch_dir, $version_dir, $version_arch_dir);
81}
82
8316µs1;
84__END__
 
# spent 6µs within lib::CORE:ftdir which was called 6 times, avg 1µs/call: # 2 times (2µs+0s) by lib::import at line 37, avg 1µs/call # once (1µs+0s) by lib::import at line 44 # once (1µs+0s) by lib::import at line 43 # once (800ns+0s) by lib::import at line 28 # once (700ns+0s) by lib::import at line 45
sub lib::CORE:ftdir; # opcode
# spent 7µs within lib::CORE:ftis which was called: # once (7µs+0s) by lib::import at line 28
sub lib::CORE:ftis; # opcode
# spent 400ns within lib::CORE:match which was called: # once (400ns+0s) by lib::import at line 28
sub lib::CORE:match; # opcode