Profile of Errno.pm

← Index
NYTProf Performance Profile «block view•line view•sub view»
For xt/tapper-mcp-scheduler-with-db-longrun.t
Run on Tue May 22 17:18:39 2012
Reported on Tue May 22 17:23:42 2012

Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/Errno.pm
Statements | Executed 24 statements in 1.42ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 12µs | 26µs | Errno::::BEGIN@8Errno::BEGIN@8
1 | 1 | 1 | 9µs | 9µs | Errno::::BEGIN@7Errno::BEGIN@7
1 | 1 | 1 | 8µs | 8µs | Errno::::TIEHASHErrno::TIEHASH
1 | 1 | 1 | 8µs | 23µs | Errno::::BEGIN@194Errno::BEGIN@194
1 | 1 | 1 | 8µs | 12µs | Errno::::BEGIN@9Errno::BEGIN@9
0 | 0 | 0 | 0s | 0s | Errno::::EXISTSErrno::EXISTS
0 | 0 | 0 | 0s | 0s | Errno::::FETCHErrno::FETCH
0 | 0 | 0 | 0s | 0s | Errno::::FIRSTKEYErrno::FIRSTKEY
0 | 0 | 0 | 0s | 0s | Errno::::NEXTKEYErrno::NEXTKEY
0 | 0 | 0 | 0s | 0s | Errno::::STOREErrno::STORE

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | #
2 |  |  |  |  | # This file is auto-generated. ***ANY*** changes here will be lost
3 |  |  |  |  | #
4 |  |  |  |  |
5 |  |  |  |  | package Errno;
6 | 1 | 500ns |  |  | our (@EXPORT_OK,%EXPORT_TAGS,@ISA,$VERSION,%errno,$AUTOLOAD);
7 | 3 | 19µs | 1 | 9µs | # spent 9µs within Errno::BEGIN@7 which was called: # once (9µs+0s) by File::Slurp::BEGIN@12 at line 7 use Exporter (); # spent 9µs making 1 call to Errno::BEGIN@7
8 | 3 | 21µs | 2 | 40µs | # spent 26µs (12+14) within Errno::BEGIN@8 which was called: # once (12µs+14µs) by File::Slurp::BEGIN@12 at line 8 use Config; # spent 26µs making 1 call to Errno::BEGIN@8 # spent 14µs making 1 call to Config::import
9 | 3 | 1.08ms | 2 | 17µs | # spent 12µs (8+5) within Errno::BEGIN@9 which was called: # once (8µs+5µs) by File::Slurp::BEGIN@12 at line 9 use strict; # spent 12µs making 1 call to Errno::BEGIN@9 # spent 5µs making 1 call to strict::import
10 |  |  |  |  |
11 | 1 | 12µs | 2 | 7µs | "$Config{'archname'}-$Config{'osvers'}" eq # spent 7µs making 2 calls to Config::FETCH, avg 3µs/call
12 |  |  |  |  | "x86_64-linux-3.0.0-14-generic" or
13 |  |  |  |  | die "Errno architecture (x86_64-linux-3.0.0-14-generic) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";
14 |  |  |  |  |
15 | 1 | 300ns |  |  | $VERSION = "1.11";
16 | 1 | 15µs |  |  | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval
17 | 1 | 9µs |  |  | @ISA = qw(Exporter);
18 |  |  |  |  |
19 | 1 | 19µs |  |  | @EXPORT_OK = qw(EBADR ENOMSG ENOTSUP ESTRPIPE EADDRINUSE EL3HLT EBADF
20 |  |  |  |  | ENOTBLK ENAVAIL ECHRNG ENOTNAM ELNRNG ENOKEY EXDEV EBADE EBADSLT
21 |  |  |  |  | ECONNREFUSED ENOSTR ENONET EOVERFLOW EISCONN EFBIG EKEYREVOKED
22 |  |  |  |  | ECONNRESET EWOULDBLOCK ELIBMAX EREMOTEIO ERFKILL ENOPKG ELIBSCN
23 |  |  |  |  | EDESTADDRREQ ENOTSOCK EIO EMEDIUMTYPE EINPROGRESS ERANGE EAFNOSUPPORT
24 |  |  |  |  | EADDRNOTAVAIL EINTR EREMOTE EILSEQ ENOMEM EPIPE ENETUNREACH ENODATA
25 |  |  |  |  | EUSERS EOPNOTSUPP EPROTO EISNAM ESPIPE EALREADY ENAMETOOLONG ENOEXEC
26 |  |  |  |  | EISDIR EBADRQC EEXIST EDOTDOT ELIBBAD EOWNERDEAD ESRCH EFAULT EXFULL
27 |  |  |  |  | EDEADLOCK EAGAIN ENOPROTOOPT ENETDOWN EPROTOTYPE EL2NSYNC ENETRESET
28 |  |  |  |  | EUCLEAN EADV EROFS ESHUTDOWN EMULTIHOP EPROTONOSUPPORT ENFILE ENOLCK
29 |  |  |  |  | ECONNABORTED ECANCELED EDEADLK ESRMNT ENOLINK ETIME ENOTDIR EINVAL
30 |  |  |  |  | ENOTTY ENOANO ELOOP ENOENT EPFNOSUPPORT EBADMSG ENOMEDIUM EL2HLT EDOM
31 |  |  |  |  | EBFONT EKEYEXPIRED EMSGSIZE ENOCSI EL3RST ENOSPC EIDRM ENOBUFS ENOSYS
32 |  |  |  |  | EHOSTDOWN EBADFD ENOSR ENOTCONN ESTALE EDQUOT EKEYREJECTED EMFILE
33 |  |  |  |  | ENOTRECOVERABLE EACCES EBUSY E2BIG EPERM ELIBEXEC ETOOMANYREFS ELIBACC
34 |  |  |  |  | ENOTUNIQ ECOMM ERESTART ESOCKTNOSUPPORT EUNATCH ETIMEDOUT ENXIO ENODEV
35 |  |  |  |  | ETXTBSY EHWPOISON EMLINK ECHILD EHOSTUNREACH EREMCHG ENOTEMPTY);
36 |  |  |  |  |
37 | 1 | 12µs |  |  | %EXPORT_TAGS = (
38 |  |  |  |  | POSIX => [qw(
39 |  |  |  |  | E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT EAGAIN EALREADY
40 |  |  |  |  | EBADF EBUSY ECHILD ECONNABORTED ECONNREFUSED ECONNRESET EDEADLK
41 |  |  |  |  | EDESTADDRREQ EDOM EDQUOT EEXIST EFAULT EFBIG EHOSTDOWN EHOSTUNREACH
42 |  |  |  |  | EINPROGRESS EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK
43 |  |  |  |  | EMSGSIZE ENAMETOOLONG ENETDOWN ENETRESET ENETUNREACH ENFILE ENOBUFS
44 |  |  |  |  | ENODEV ENOENT ENOEXEC ENOLCK ENOMEM ENOPROTOOPT ENOSPC ENOSYS ENOTBLK
45 |  |  |  |  | ENOTCONN ENOTDIR ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM
46 |  |  |  |  | EPFNOSUPPORT EPIPE EPROTONOSUPPORT EPROTOTYPE ERANGE EREMOTE ERESTART
47 |  |  |  |  | EROFS ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESTALE ETIMEDOUT
48 |  |  |  |  | ETOOMANYREFS ETXTBSY EUSERS EWOULDBLOCK EXDEV
49 |  |  |  |  | )]
50 |  |  |  |  | );
51 |  |  |  |  |
52 |  |  |  |  | sub EPERM () { 1 }
53 |  |  |  |  | sub ENOENT () { 2 }
54 |  |  |  |  | sub ESRCH () { 3 }
55 |  |  |  |  | sub EINTR () { 4 }
56 |  |  |  |  | sub EIO () { 5 }
57 |  |  |  |  | sub ENXIO () { 6 }
58 |  |  |  |  | sub E2BIG () { 7 }
59 |  |  |  |  | sub ENOEXEC () { 8 }
60 |  |  |  |  | sub EBADF () { 9 }
61 |  |  |  |  | sub ECHILD () { 10 }
62 |  |  |  |  | sub EWOULDBLOCK () { 11 }
63 |  |  |  |  | sub EAGAIN () { 11 }
64 |  |  |  |  | sub ENOMEM () { 12 }
65 |  |  |  |  | sub EACCES () { 13 }
66 |  |  |  |  | sub EFAULT () { 14 }
67 |  |  |  |  | sub ENOTBLK () { 15 }
68 |  |  |  |  | sub EBUSY () { 16 }
69 |  |  |  |  | sub EEXIST () { 17 }
70 |  |  |  |  | sub EXDEV () { 18 }
71 |  |  |  |  | sub ENODEV () { 19 }
72 |  |  |  |  | sub ENOTDIR () { 20 }
73 |  |  |  |  | sub EISDIR () { 21 }
74 |  |  |  |  | sub EINVAL () { 22 }
75 |  |  |  |  | sub ENFILE () { 23 }
76 |  |  |  |  | sub EMFILE () { 24 }
77 |  |  |  |  | sub ENOTTY () { 25 }
78 |  |  |  |  | sub ETXTBSY () { 26 }
79 |  |  |  |  | sub EFBIG () { 27 }
80 |  |  |  |  | sub ENOSPC () { 28 }
81 |  |  |  |  | sub ESPIPE () { 29 }
82 |  |  |  |  | sub EROFS () { 30 }
83 |  |  |  |  | sub EMLINK () { 31 }
84 |  |  |  |  | sub EPIPE () { 32 }
85 |  |  |  |  | sub EDOM () { 33 }
86 |  |  |  |  | sub ERANGE () { 34 }
87 |  |  |  |  | sub EDEADLOCK () { 35 }
88 |  |  |  |  | sub EDEADLK () { 35 }
89 |  |  |  |  | sub ENAMETOOLONG () { 36 }
90 |  |  |  |  | sub ENOLCK () { 37 }
91 |  |  |  |  | sub ENOSYS () { 38 }
92 |  |  |  |  | sub ENOTEMPTY () { 39 }
93 |  |  |  |  | sub ELOOP () { 40 }
94 |  |  |  |  | sub ENOMSG () { 42 }
95 |  |  |  |  | sub EIDRM () { 43 }
96 |  |  |  |  | sub ECHRNG () { 44 }
97 |  |  |  |  | sub EL2NSYNC () { 45 }
98 |  |  |  |  | sub EL3HLT () { 46 }
99 |  |  |  |  | sub EL3RST () { 47 }
100 |  |  |  |  | sub ELNRNG () { 48 }
101 |  |  |  |  | sub EUNATCH () { 49 }
102 |  |  |  |  | sub ENOCSI () { 50 }
103 |  |  |  |  | sub EL2HLT () { 51 }
104 |  |  |  |  | sub EBADE () { 52 }
105 |  |  |  |  | sub EBADR () { 53 }
106 |  |  |  |  | sub EXFULL () { 54 }
107 |  |  |  |  | sub ENOANO () { 55 }
108 |  |  |  |  | sub EBADRQC () { 56 }
109 |  |  |  |  | sub EBADSLT () { 57 }
110 |  |  |  |  | sub EBFONT () { 59 }
111 |  |  |  |  | sub ENOSTR () { 60 }
112 |  |  |  |  | sub ENODATA () { 61 }
113 |  |  |  |  | sub ETIME () { 62 }
114 |  |  |  |  | sub ENOSR () { 63 }
115 |  |  |  |  | sub ENONET () { 64 }
116 |  |  |  |  | sub ENOPKG () { 65 }
117 |  |  |  |  | sub EREMOTE () { 66 }
118 |  |  |  |  | sub ENOLINK () { 67 }
119 |  |  |  |  | sub EADV () { 68 }
120 |  |  |  |  | sub ESRMNT () { 69 }
121 |  |  |  |  | sub ECOMM () { 70 }
122 |  |  |  |  | sub EPROTO () { 71 }
123 |  |  |  |  | sub EMULTIHOP () { 72 }
124 |  |  |  |  | sub EDOTDOT () { 73 }
125 |  |  |  |  | sub EBADMSG () { 74 }
126 |  |  |  |  | sub EOVERFLOW () { 75 }
127 |  |  |  |  | sub ENOTUNIQ () { 76 }
128 |  |  |  |  | sub EBADFD () { 77 }
129 |  |  |  |  | sub EREMCHG () { 78 }
130 |  |  |  |  | sub ELIBACC () { 79 }
131 |  |  |  |  | sub ELIBBAD () { 80 }
132 |  |  |  |  | sub ELIBSCN () { 81 }
133 |  |  |  |  | sub ELIBMAX () { 82 }
134 |  |  |  |  | sub ELIBEXEC () { 83 }
135 |  |  |  |  | sub EILSEQ () { 84 }
136 |  |  |  |  | sub ERESTART () { 85 }
137 |  |  |  |  | sub ESTRPIPE () { 86 }
138 |  |  |  |  | sub EUSERS () { 87 }
139 |  |  |  |  | sub ENOTSOCK () { 88 }
140 |  |  |  |  | sub EDESTADDRREQ () { 89 }
141 |  |  |  |  | sub EMSGSIZE () { 90 }
142 |  |  |  |  | sub EPROTOTYPE () { 91 }
143 |  |  |  |  | sub ENOPROTOOPT () { 92 }
144 |  |  |  |  | sub EPROTONOSUPPORT () { 93 }
145 |  |  |  |  | sub ESOCKTNOSUPPORT () { 94 }
146 |  |  |  |  | sub ENOTSUP () { 95 }
147 |  |  |  |  | sub EOPNOTSUPP () { 95 }
148 |  |  |  |  | sub EPFNOSUPPORT () { 96 }
149 |  |  |  |  | sub EAFNOSUPPORT () { 97 }
150 |  |  |  |  | sub EADDRINUSE () { 98 }
151 |  |  |  |  | sub EADDRNOTAVAIL () { 99 }
152 |  |  |  |  | sub ENETDOWN () { 100 }
153 |  |  |  |  | sub ENETUNREACH () { 101 }
154 |  |  |  |  | sub ENETRESET () { 102 }
155 |  |  |  |  | sub ECONNABORTED () { 103 }
156 |  |  |  |  | sub ECONNRESET () { 104 }
157 |  |  |  |  | sub ENOBUFS () { 105 }
158 |  |  |  |  | sub EISCONN () { 106 }
159 |  |  |  |  | sub ENOTCONN () { 107 }
160 |  |  |  |  | sub ESHUTDOWN () { 108 }
161 |  |  |  |  | sub ETOOMANYREFS () { 109 }
162 |  |  |  |  | sub ETIMEDOUT () { 110 }
163 |  |  |  |  | sub ECONNREFUSED () { 111 }
164 |  |  |  |  | sub EHOSTDOWN () { 112 }
165 |  |  |  |  | sub EHOSTUNREACH () { 113 }
166 |  |  |  |  | sub EALREADY () { 114 }
167 |  |  |  |  | sub EINPROGRESS () { 115 }
168 |  |  |  |  | sub ESTALE () { 116 }
169 |  |  |  |  | sub EUCLEAN () { 117 }
170 |  |  |  |  | sub ENOTNAM () { 118 }
171 |  |  |  |  | sub ENAVAIL () { 119 }
172 |  |  |  |  | sub EISNAM () { 120 }
173 |  |  |  |  | sub EREMOTEIO () { 121 }
174 |  |  |  |  | sub EDQUOT () { 122 }
175 |  |  |  |  | sub ENOMEDIUM () { 123 }
176 |  |  |  |  | sub EMEDIUMTYPE () { 124 }
177 |  |  |  |  | sub ECANCELED () { 125 }
178 |  |  |  |  | sub ENOKEY () { 126 }
179 |  |  |  |  | sub EKEYEXPIRED () { 127 }
180 |  |  |  |  | sub EKEYREVOKED () { 128 }
181 |  |  |  |  | sub EKEYREJECTED () { 129 }
182 |  |  |  |  | sub EOWNERDEAD () { 130 }
183 |  |  |  |  | sub ENOTRECOVERABLE () { 131 }
184 |  |  |  |  | sub ERFKILL () { 132 }
185 |  |  |  |  | sub EHWPOISON () { 133 }
186 |  |  |  |  |
187 | 1 | 15µs |  |  | # spent 8µs within Errno::TIEHASH which was called: # once (8µs+0s) by File::Slurp::BEGIN@12 at line 230 sub TIEHASH { bless [] }
188 |  |  |  |  |
189 |  |  |  |  | sub FETCH {
190 |  |  |  |  | my ($self, $errname) = @_;
191 |  |  |  |  | my $proto = prototype("Errno::$errname");
192 |  |  |  |  | my $errno = "";
193 |  |  |  |  | if (defined($proto) && $proto eq "") {
194 | 3 | 184µs | 2 | 38µs | # spent 23µs (8+15) within Errno::BEGIN@194 which was called: # once (8µs+15µs) by File::Slurp::BEGIN@12 at line 194 no strict 'refs'; # spent 23µs making 1 call to Errno::BEGIN@194 # spent 15µs making 1 call to strict::unimport
195 |  |  |  |  | $errno = &$errname;
196 |  |  |  |  | $errno = 0 unless $! == $errno;
197 |  |  |  |  | }
198 |  |  |  |  | return $errno;
199 |  |  |  |  | }
200 |  |  |  |  |
201 |  |  |  |  | sub STORE {
202 |  |  |  |  | require Carp;
203 |  |  |  |  | Carp::confess("ERRNO hash is read only!");
204 |  |  |  |  | }
205 |  |  |  |  |
206 | 1 | 1µs |  |  | *CLEAR = \&STORE;
207 | 1 | 400ns |  |  | *DELETE = \&STORE;
208 |  |  |  |  |
209 |  |  |  |  | sub NEXTKEY {
210 |  |  |  |  | my($k,$v);
211 |  |  |  |  | while(($k,$v) = each %Errno::) {
212 |  |  |  |  | my $proto = prototype("Errno::$k");
213 |  |  |  |  | last if (defined($proto) && $proto eq "");
214 |  |  |  |  | }
215 |  |  |  |  | $k
216 |  |  |  |  | }
217 |  |  |  |  |
218 |  |  |  |  | sub FIRSTKEY {
219 |  |  |  |  | my $s = scalar keys %Errno::; # initialize iterator
220 |  |  |  |  | goto &NEXTKEY;
221 |  |  |  |  | }
222 |  |  |  |  |
223 |  |  |  |  | sub EXISTS {
224 |  |  |  |  | my ($self, $errname) = @_;
225 |  |  |  |  | my $r = ref $errname;
226 |  |  |  |  | my $proto = !$r || $r eq 'CODE' ? prototype($errname) : undef;
227 |  |  |  |  | defined($proto) && $proto eq "";
228 |  |  |  |  | }
229 |  |  |  |  |
230 | 1 | 3µs | 1 | 8µs | tie %!, __PACKAGE__; # spent 8µs making 1 call to Errno::TIEHASH
231 |  |  |  |  |
232 | 1 | 25µs |  |  | 1;
233 |  |  |  |  | __END__