Profile of /usr/local/lib/perl5/5.10.1/darwin-2level/IO.pm

← Index
NYTProf Performance Profile «block view•line view•sub view»
For 05.Domain_and_Item.t
Run on Tue May 4 17:21:41 2010
Reported on Tue May 4 17:22:28 2010

File | /usr/local/lib/perl5/5.10.1/darwin-2level/IO.pm
Statements Executed | 15
Statement Execution Time | 399µs

Subroutines — ordered by exclusive time
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 8µs | 8µs | IO::::BEGIN@5IO::BEGIN@5
1 | 1 | 1 | 7µs | 42µs | IO::::BEGIN@6IO::BEGIN@6
1 | 1 | 1 | 7µs | 9µs | IO::::BEGIN@7IO::BEGIN@7
1 | 1 | 1 | 7µs | 20µs | IO::::BEGIN@8IO::BEGIN@8
0 | 0 | 0 | 0s | 0s | IO::::importIO::import

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | #
2 |  |  |  |  |
3 |  |  |  |  | package IO;
4 |  |  |  |  |
5 | 3 | 19µs | 1 | 8µs | # spent 8µs within IO::BEGIN@5 which was called # once (8µs+0s) by IO::Handle::BEGIN@266 at line 5 use XSLoader (); # spent 8µs making 1 call to IO::BEGIN@5
6 | 3 | 20µs | 2 | 76µs | # spent 42µs (7+34) within IO::BEGIN@6 which was called # once (7µs+34µs) by IO::Handle::BEGIN@266 at line 6 use Carp; # spent 42µs making 1 call to IO::BEGIN@6 # spent 34µs making 1 call to Exporter::import
7 | 3 | 18µs | 2 | 12µs | # spent 9µs (7+2) within IO::BEGIN@7 which was called # once (7µs+2µs) by IO::Handle::BEGIN@266 at line 7 use strict; # spent 9µs making 1 call to IO::BEGIN@7 # spent 2µs making 1 call to strict::import
8 | 3 | 119µs | 2 | 32µs | # spent 20µs (7+13) within IO::BEGIN@8 which was called # once (7µs+13µs) by IO::Handle::BEGIN@266 at line 8 use warnings; # spent 20µs making 1 call to IO::BEGIN@8 # spent 13µs making 1 call to warnings::import
9 |  |  |  |  |
10 | 1 | 600ns |  |  | our $VERSION = "1.25";
11 | 1 | 217µs | 1 | 211µs | XSLoader::load 'IO', $VERSION; # spent 211µs making 1 call to XSLoader::load
12 |  |  |  |  |
13 |  |  |  |  | sub import {
14 |  |  |  |  | shift;
15 |  |  |  |  |
16 |  |  |  |  | warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated})
17 |  |  |  |  | if @_ == 0 ;
18 |  |  |  |  |
19 |  |  |  |  | my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
20 |  |  |  |  |
21 |  |  |  |  | eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
22 |  |  |  |  | or croak $@;
23 |  |  |  |  | }
24 |  |  |  |  |
25 | 1 | 5µs |  |  | 1;
26 |  |  |  |  |
27 |  |  |  |  | __END__
28 |  |  |  |  |
29 |  |  |  |  | =head1 NAME
30 |  |  |  |  |
31 |  |  |  |  | IO - load various IO modules
32 |  |  |  |  |
33 |  |  |  |  | =head1 SYNOPSIS
34 |  |  |  |  |
35 |  |  |  |  | use IO qw(Handle File); # loads IO modules, here IO::Handle, IO::File
36 |  |  |  |  | use IO; # DEPRECATED
37 |  |  |  |  |
38 |  |  |  |  | =head1 DESCRIPTION
39 |  |  |  |  |
40 |  |  |  |  | C<IO> provides a simple mechanism to load several of the IO modules
41 |  |  |  |  | in one go. The IO modules belonging to the core are:
42 |  |  |  |  |
43 |  |  |  |  | IO::Handle
44 |  |  |  |  | IO::Seekable
45 |  |  |  |  | IO::File
46 |  |  |  |  | IO::Pipe
47 |  |  |  |  | IO::Socket
48 |  |  |  |  | IO::Dir
49 |  |  |  |  | IO::Select
50 |  |  |  |  | IO::Poll
51 |  |  |  |  |
52 |  |  |  |  | Some other IO modules don't belong to the perl core but can be loaded
53 |  |  |  |  | as well if they have been installed from CPAN. You can discover which
54 |  |  |  |  | ones exist by searching for "^IO::" on http://search.cpan.org.
55 |  |  |  |  |
56 |  |  |  |  | For more information on any of these modules, please see its respective
57 |  |  |  |  | documentation.
58 |  |  |  |  |
59 |  |  |  |  | =head1 DEPRECATED
60 |  |  |  |  |
61 |  |  |  |  | use IO; # loads all the modules listed below
62 |  |  |  |  |
63 |  |  |  |  | The loaded modules are IO::Handle, IO::Seekable, IO::File, IO::Pipe,
64 |  |  |  |  | IO::Socket, IO::Dir. You should instead explicitly import the IO
65 |  |  |  |  | modules you want.
66 |  |  |  |  |
67 |  |  |  |  | =cut
68 |  |  |  |  |