Profile of POSIX.pm

← Index
NYTProf Performance Profile «block view•line view•sub view»
For bin/dpath
Run on Tue Jun 5 15:31:33 2012
Reported on Tue Jun 5 15:31:38 2012

Filename | /home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/x86_64-linux-thread-multi/POSIX.pm
Statements | Executed 43 statements in 8.39ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 4.53ms | 7.78ms | POSIX::::BEGIN@9 POSIX::BEGIN@9
1 | 1 | 1 | 3.42ms | 4.18ms | POSIX::SigRt::::BEGIN@58 POSIX::SigRt::BEGIN@58
1 | 1 | 1 | 1.88ms | 1.88ms | POSIX::::load_imports POSIX::load_imports
1 | 1 | 1 | 1.87ms | 4.98ms | POSIX::::BEGIN@13 POSIX::BEGIN@13
1 | 1 | 1 | 231µs | 25.8ms | POSIX::::import POSIX::import
1 | 1 | 1 | 55µs | 70µs | POSIX::::BEGIN@2 POSIX::BEGIN@2
1 | 1 | 1 | 44µs | 108µs | POSIX::::BEGIN@39 POSIX::BEGIN@39
1 | 1 | 1 | 44µs | 347µs | POSIX::SigRt::::BEGIN@60 POSIX::SigRt::BEGIN@60
1 | 1 | 1 | 41µs | 64µs | POSIX::::AUTOLOAD POSIX::AUTOLOAD
1 | 1 | 1 | 34µs | 76µs | POSIX::::BEGIN@3 POSIX::BEGIN@3
1 | 1 | 1 | 27µs | 151µs | POSIX::SigAction::::BEGIN@52POSIX::SigAction::BEGIN@52
1 | 1 | 1 | 24µs | 81µs | POSIX::SigRt::::BEGIN@56 POSIX::SigRt::BEGIN@56
1 | 1 | 1 | 23µs | 23µs | POSIX::::CORE:match POSIX::CORE:match (opcode)
0 | 0 | 0 | 0s | 0s | POSIX::SigRt::::DESTROY POSIX::SigRt::DESTROY
0 | 0 | 0 | 0s | 0s | POSIX::::croak POSIX::croak

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  |
2 | 2 | 95µs | 2 | 86µs | # spent 70µs (55+16) within POSIX::BEGIN@2 which was called: # once (55µs+16µs) by Data::DPath::Context::BEGIN@22 at line 2 # spent 70µs making 1 call to POSIX::BEGIN@2 # spent 16µs making 1 call to strict::import
3 | 2 | 283µs | 2 | 118µs | # spent 76µs (34+42) within POSIX::BEGIN@3 which was called: # once (34µs+42µs) by Data::DPath::Context::BEGIN@22 at line 3 # spent 76µs making 1 call to POSIX::BEGIN@3 # spent 42µs making 1 call to warnings::import
- - |  |  |  |  |
5 | 1 | 18µs |  |  |
- - |  |  |  |  |
7 | 1 | 2µs |  |  |
- - |  |  |  |  |
9 | 2 | 516µs | 2 | 10.6ms | # spent 7.78ms (4.53+3.26) within POSIX::BEGIN@9 which was called: # once (4.53ms+3.26ms) by Data::DPath::Context::BEGIN@22 at line 9 # spent 7.78ms making 1 call to POSIX::BEGIN@9 # spent 2.83ms making 1 call to AutoLoader::import
- - |  |  |  |  |
11 | 1 | 2µs |  |  |
- - |  |  |  |  |
13 |  |  | 1 | 1.98ms | # spent 4.98ms (1.87+3.11) within POSIX::BEGIN@13 which was called: # once (1.87ms+3.11ms) by Data::DPath::Context::BEGIN@22 at line 19 # spent 1.98ms making 1 call to Exporter::import
- - |  |  |  |  |
19 | 2 | 1.25ms | 1 | 4.98ms | # spent 4.98ms making 1 call to POSIX::BEGIN@13
- - |  |  |  |  |
22 | 1 | 900ns |  |  |
- - |  |  |  |  |
24 |  |  |  |  | # spent 25.8ms (231µs+25.6) within POSIX::import which was called: # once (231µs+25.6ms) by Data::DPath::Context::BEGIN@22 at line 22 of Data/DPath/Context.pm
25 | 5 | 60µs | 1 | 64µs | # spent 64µs making 1 call to POSIX::AUTOLOAD
- - |  |  |  |  |
29 |  |  | 1 | 20.8ms | # spent 20.8ms making 1 call to Exporter::import
- - |  |  |  |  |
32 |  |  |  |  |
- - |  |  |  |  |
36 | 1 | 2.21ms | 1 | 2.17ms | # spent 2.17ms making 1 call to XSLoader::load
- - |  |  |  |  |
38 |  |  |  |  | # spent 64µs (41+23) within POSIX::AUTOLOAD which was called: # once (41µs+23µs) by POSIX::import at line 25
39 | 2 | 416µs | 2 | 172µs | # spent 108µs (44+64) within POSIX::BEGIN@39 which was called: # once (44µs+64µs) by Data::DPath::Context::BEGIN@22 at line 39 # spent 108µs making 1 call to POSIX::BEGIN@39 # spent 64µs making 1 call to warnings::unimport
40 | 3 | 72µs | 1 | 23µs | # spent 23µs making 1 call to POSIX::CORE:match
- - |  |  |  |  |
43 |  |  | 1 | 2.86ms | # spent 2.86ms making 1 call to AutoLoader::AUTOLOAD
- - |  |  |  |  |
52 | 2 | 125µs | 2 | 275µs | # spent 151µs (27+124) within POSIX::SigAction::BEGIN@52 which was called: # once (27µs+124µs) by Data::DPath::Context::BEGIN@22 at line 52 # spent 151µs making 1 call to POSIX::SigAction::BEGIN@52 # spent 124µs making 1 call to AutoLoader::import
- - |  |  |  |  |
56 | 2 | 96µs | 2 | 138µs | # spent 81µs (24+57) within POSIX::SigRt::BEGIN@56 which was called: # once (24µs+57µs) by Data::DPath::Context::BEGIN@22 at line 56 # spent 81µs making 1 call to POSIX::SigRt::BEGIN@56 # spent 57µs making 1 call to AutoLoader::import
- - |  |  |  |  |
58 | 2 | 944µs | 1 | 4.18ms | # spent 4.18ms (3.42+766µs) within POSIX::SigRt::BEGIN@58 which was called: # once (3.42ms+766µs) by Data::DPath::Context::BEGIN@22 at line 58 # spent 4.18ms making 1 call to POSIX::SigRt::BEGIN@58
- - |  |  |  |  |
60 | 2 | 277µs | 2 | 651µs | # spent 347µs (44+303) within POSIX::SigRt::BEGIN@60 which was called: # once (44µs+303µs) by Data::DPath::Context::BEGIN@22 at line 60 # spent 347µs making 1 call to POSIX::SigRt::BEGIN@60 # spent 303µs making 1 call to vars::import
61 | 1 | 36µs |  |  |
- - |  |  |  |  |
63 | 1 | 2µs |  |  |
- - |  |  |  |  |
65 | 1 | 32µs | 1 | 33µs | # spent 33µs making 1 call to Tie::StdHash::TIEHASH
- - |  |  |  |  |
67 |  |  |  |  |
- - |  |  |  |  |
71 | 1 | 47µs |  |  |
- - |  |  |  |  |
753 |  |  |  |  | # spent 1.88ms within POSIX::load_imports which was called: # once (1.88ms+0s) by POSIX::import at line 51 of AutoLoader.pm sub load_imports {
754 | 7 | 1.89ms |  |  | %EXPORT_TAGS = (
755 |  |  |  |  |
756 |  |  |  |  | assert_h => [qw(assert NDEBUG)],
757 |  |  |  |  |
758 |  |  |  |  | ctype_h => [qw(isalnum isalpha iscntrl isdigit isgraph islower
759 |  |  |  |  | isprint ispunct isspace isupper isxdigit tolower toupper)],
760 |  |  |  |  |
761 |  |  |  |  | dirent_h => [],
762 |  |  |  |  |
763 |  |  |  |  | errno_h => [qw(E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT
764 |  |  |  |  | EAGAIN EALREADY EBADF EBUSY ECHILD ECONNABORTED
765 |  |  |  |  | ECONNREFUSED ECONNRESET EDEADLK EDESTADDRREQ EDOM EDQUOT
766 |  |  |  |  | EEXIST EFAULT EFBIG EHOSTDOWN EHOSTUNREACH EINPROGRESS
767 |  |  |  |  | EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK
768 |  |  |  |  | EMSGSIZE ENAMETOOLONG ENETDOWN ENETRESET ENETUNREACH
769 |  |  |  |  | ENFILE ENOBUFS ENODEV ENOENT ENOEXEC ENOLCK ENOMEM
770 |  |  |  |  | ENOPROTOOPT ENOSPC ENOSYS ENOTBLK ENOTCONN ENOTDIR
771 |  |  |  |  | ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM
772 |  |  |  |  | EPFNOSUPPORT EPIPE EPROCLIM EPROTONOSUPPORT EPROTOTYPE
773 |  |  |  |  | ERANGE EREMOTE ERESTART EROFS ESHUTDOWN ESOCKTNOSUPPORT
774 |  |  |  |  | ESPIPE ESRCH ESTALE ETIMEDOUT ETOOMANYREFS ETXTBSY
775 |  |  |  |  | EUSERS EWOULDBLOCK EXDEV errno)],
776 |  |  |  |  |
777 |  |  |  |  | fcntl_h => [qw(FD_CLOEXEC F_DUPFD F_GETFD F_GETFL F_GETLK F_RDLCK
778 |  |  |  |  | F_SETFD F_SETFL F_SETLK F_SETLKW F_UNLCK F_WRLCK
779 |  |  |  |  | O_ACCMODE O_APPEND O_CREAT O_EXCL O_NOCTTY O_NONBLOCK
780 |  |  |  |  | O_RDONLY O_RDWR O_TRUNC O_WRONLY
781 |  |  |  |  | creat
782 |  |  |  |  | SEEK_CUR SEEK_END SEEK_SET
783 |  |  |  |  | S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU
784 |  |  |  |  | S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISGID S_ISREG S_ISUID
785 |  |  |  |  | S_IWGRP S_IWOTH S_IWUSR)],
786 |  |  |  |  |
787 |  |  |  |  | float_h => [qw(DBL_DIG DBL_EPSILON DBL_MANT_DIG
788 |  |  |  |  | DBL_MAX DBL_MAX_10_EXP DBL_MAX_EXP
789 |  |  |  |  | DBL_MIN DBL_MIN_10_EXP DBL_MIN_EXP
790 |  |  |  |  | FLT_DIG FLT_EPSILON FLT_MANT_DIG
791 |  |  |  |  | FLT_MAX FLT_MAX_10_EXP FLT_MAX_EXP
792 |  |  |  |  | FLT_MIN FLT_MIN_10_EXP FLT_MIN_EXP
793 |  |  |  |  | FLT_RADIX FLT_ROUNDS
794 |  |  |  |  | LDBL_DIG LDBL_EPSILON LDBL_MANT_DIG
795 |  |  |  |  | LDBL_MAX LDBL_MAX_10_EXP LDBL_MAX_EXP
796 |  |  |  |  | LDBL_MIN LDBL_MIN_10_EXP LDBL_MIN_EXP)],
797 |  |  |  |  |
798 |  |  |  |  | grp_h => [],
799 |  |  |  |  |
800 |  |  |  |  | limits_h => [qw( ARG_MAX CHAR_BIT CHAR_MAX CHAR_MIN CHILD_MAX
801 |  |  |  |  | INT_MAX INT_MIN LINK_MAX LONG_MAX LONG_MIN MAX_CANON
802 |  |  |  |  | MAX_INPUT MB_LEN_MAX NAME_MAX NGROUPS_MAX OPEN_MAX
803 |  |  |  |  | PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN
804 |  |  |  |  | SSIZE_MAX STREAM_MAX TZNAME_MAX UCHAR_MAX UINT_MAX
805 |  |  |  |  | ULONG_MAX USHRT_MAX _POSIX_ARG_MAX _POSIX_CHILD_MAX
806 |  |  |  |  | _POSIX_LINK_MAX _POSIX_MAX_CANON _POSIX_MAX_INPUT
807 |  |  |  |  | _POSIX_NAME_MAX _POSIX_NGROUPS_MAX _POSIX_OPEN_MAX
808 |  |  |  |  | _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
809 |  |  |  |  | _POSIX_STREAM_MAX _POSIX_TZNAME_MAX)],
810 |  |  |  |  |
811 |  |  |  |  | locale_h => [qw(LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES
812 |  |  |  |  | LC_MONETARY LC_NUMERIC LC_TIME NULL
813 |  |  |  |  | localeconv setlocale)],
814 |  |  |  |  |
815 |  |  |  |  | math_h => [qw(HUGE_VAL acos asin atan ceil cosh fabs floor fmod
816 |  |  |  |  | frexp ldexp log10 modf pow sinh tan tanh)],
817 |  |  |  |  |
818 |  |  |  |  | pwd_h => [],
819 |  |  |  |  |
820 |  |  |  |  | setjmp_h => [qw(longjmp setjmp siglongjmp sigsetjmp)],
821 |  |  |  |  |
822 |  |  |  |  | signal_h => [qw(SA_NOCLDSTOP SA_NOCLDWAIT SA_NODEFER SA_ONSTACK
823 |  |  |  |  | SA_RESETHAND SA_RESTART SA_SIGINFO SIGABRT SIGALRM
824 |  |  |  |  | SIGCHLD SIGCONT SIGFPE SIGHUP SIGILL SIGINT SIGKILL
825 |  |  |  |  | SIGPIPE %SIGRT SIGRTMIN SIGRTMAX SIGQUIT SIGSEGV SIGSTOP
826 |  |  |  |  | SIGTERM SIGTSTP SIGTTIN SIGTTOU SIGUSR1 SIGUSR2 SIGBUS
827 |  |  |  |  | SIGPOLL SIGPROF SIGSYS SIGTRAP SIGURG SIGVTALRM SIGXCPU SIGXFSZ
828 |  |  |  |  | SIG_BLOCK SIG_DFL SIG_ERR SIG_IGN SIG_SETMASK SIG_UNBLOCK
829 |  |  |  |  | raise sigaction signal sigpending sigprocmask sigsuspend)],
830 |  |  |  |  |
831 |  |  |  |  | stdarg_h => [],
832 |  |  |  |  |
833 |  |  |  |  | stddef_h => [qw(NULL offsetof)],
834 |  |  |  |  |
835 |  |  |  |  | stdio_h => [qw(BUFSIZ EOF FILENAME_MAX L_ctermid L_cuserid
836 |  |  |  |  | L_tmpname NULL SEEK_CUR SEEK_END SEEK_SET
837 |  |  |  |  | STREAM_MAX TMP_MAX stderr stdin stdout
838 |  |  |  |  | clearerr fclose fdopen feof ferror fflush fgetc fgetpos
839 |  |  |  |  | fgets fopen fprintf fputc fputs fread freopen
840 |  |  |  |  | fscanf fseek fsetpos ftell fwrite getchar gets
841 |  |  |  |  | perror putc putchar puts remove rewind
842 |  |  |  |  | scanf setbuf setvbuf sscanf tmpfile tmpnam
843 |  |  |  |  | ungetc vfprintf vprintf vsprintf)],
844 |  |  |  |  |
845 |  |  |  |  | stdlib_h => [qw(EXIT_FAILURE EXIT_SUCCESS MB_CUR_MAX NULL RAND_MAX
846 |  |  |  |  | abort atexit atof atoi atol bsearch calloc div
847 |  |  |  |  | free getenv labs ldiv malloc mblen mbstowcs mbtowc
848 |  |  |  |  | qsort realloc strtod strtol strtoul wcstombs wctomb)],
849 |  |  |  |  |
850 |  |  |  |  | string_h => [qw(NULL memchr memcmp memcpy memmove memset strcat
851 |  |  |  |  | strchr strcmp strcoll strcpy strcspn strerror strlen
852 |  |  |  |  | strncat strncmp strncpy strpbrk strrchr strspn strstr
853 |  |  |  |  | strtok strxfrm)],
854 |  |  |  |  |
855 |  |  |  |  | sys_stat_h => [qw(S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU
856 |  |  |  |  | S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISGID S_ISREG
857 |  |  |  |  | S_ISUID S_IWGRP S_IWOTH S_IWUSR S_IXGRP S_IXOTH S_IXUSR
858 |  |  |  |  | fstat mkfifo)],
859 |  |  |  |  |
860 |  |  |  |  | sys_times_h => [],
861 |  |  |  |  |
862 |  |  |  |  | sys_types_h => [],
863 |  |  |  |  |
864 |  |  |  |  | sys_utsname_h => [qw(uname)],
865 |  |  |  |  |
866 |  |  |  |  | sys_wait_h => [qw(WEXITSTATUS WIFEXITED WIFSIGNALED WIFSTOPPED
867 |  |  |  |  | WNOHANG WSTOPSIG WTERMSIG WUNTRACED)],
868 |  |  |  |  |
869 |  |  |  |  | termios_h => [qw( B0 B110 B1200 B134 B150 B1800 B19200 B200 B2400
870 |  |  |  |  | B300 B38400 B4800 B50 B600 B75 B9600 BRKINT CLOCAL
871 |  |  |  |  | CREAD CS5 CS6 CS7 CS8 CSIZE CSTOPB ECHO ECHOE ECHOK
872 |  |  |  |  | ECHONL HUPCL ICANON ICRNL IEXTEN IGNBRK IGNCR IGNPAR
873 |  |  |  |  | INLCR INPCK ISIG ISTRIP IXOFF IXON NCCS NOFLSH OPOST
874 |  |  |  |  | PARENB PARMRK PARODD TCIFLUSH TCIOFF TCIOFLUSH TCION
875 |  |  |  |  | TCOFLUSH TCOOFF TCOON TCSADRAIN TCSAFLUSH TCSANOW
876 |  |  |  |  | TOSTOP VEOF VEOL VERASE VINTR VKILL VMIN VQUIT VSTART
877 |  |  |  |  | VSTOP VSUSP VTIME
878 |  |  |  |  | cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcdrain
879 |  |  |  |  | tcflow tcflush tcgetattr tcsendbreak tcsetattr )],
880 |  |  |  |  |
881 |  |  |  |  | time_h => [qw(CLK_TCK CLOCKS_PER_SEC NULL asctime clock ctime
882 |  |  |  |  | difftime mktime strftime tzset tzname)],
883 |  |  |  |  |
884 |  |  |  |  | unistd_h => [qw(F_OK NULL R_OK SEEK_CUR SEEK_END SEEK_SET
885 |  |  |  |  | STDERR_FILENO STDIN_FILENO STDOUT_FILENO W_OK X_OK
886 |  |  |  |  | _PC_CHOWN_RESTRICTED _PC_LINK_MAX _PC_MAX_CANON
887 |  |  |  |  | _PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX
888 |  |  |  |  | _PC_PIPE_BUF _PC_VDISABLE _POSIX_CHOWN_RESTRICTED
889 |  |  |  |  | _POSIX_JOB_CONTROL _POSIX_NO_TRUNC _POSIX_SAVED_IDS
890 |  |  |  |  | _POSIX_VDISABLE _POSIX_VERSION _SC_ARG_MAX
891 |  |  |  |  | _SC_CHILD_MAX _SC_CLK_TCK _SC_JOB_CONTROL
892 |  |  |  |  | _SC_NGROUPS_MAX _SC_OPEN_MAX _SC_PAGESIZE _SC_SAVED_IDS
893 |  |  |  |  | _SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION
894 |  |  |  |  | _exit access ctermid cuserid
895 |  |  |  |  | dup2 dup execl execle execlp execv execve execvp
896 |  |  |  |  | fpathconf fsync getcwd getegid geteuid getgid getgroups
897 |  |  |  |  | getpid getuid isatty lseek pathconf pause setgid setpgid
898 |  |  |  |  | setsid setuid sysconf tcgetpgrp tcsetpgrp ttyname)],
899 |  |  |  |  |
900 |  |  |  |  | utime_h => [],
901 |  |  |  |  |
902 |  |  |  |  | );
903 |  |  |  |  |
904 |  |  |  |  | # Exporter::export_tags();
905 |  |  |  |  | {
906 |  |  |  |  | # De-duplicate the export list:
907 |  |  |  |  | my %export;
908 |  |  |  |  | @export{map {@$_} values %EXPORT_TAGS} = ();
909 |  |  |  |  | # Doing the de-dup with a temporary hash has the advantage that the SVs in
910 |  |  |  |  | # @EXPORT are actually shared hash key scalars, which will save some memory.
911 |  |  |  |  | push @EXPORT, keys %export;
912 |  |  |  |  | }
913 |  |  |  |  |
914 |  |  |  |  | @EXPORT_OK = qw(
915 |  |  |  |  | abs
916 |  |  |  |  | alarm
917 |  |  |  |  | atan2
918 |  |  |  |  | chdir
919 |  |  |  |  | chmod
920 |  |  |  |  | chown
921 |  |  |  |  | close
922 |  |  |  |  | closedir
923 |  |  |  |  | cos
924 |  |  |  |  | exit
925 |  |  |  |  | exp
926 |  |  |  |  | fcntl
927 |  |  |  |  | fileno
928 |  |  |  |  | fork
929 |  |  |  |  | getc
930 |  |  |  |  | getgrgid
931 |  |  |  |  | getgrnam
932 |  |  |  |  | getlogin
933 |  |  |  |  | getpgrp
934 |  |  |  |  | getppid
935 |  |  |  |  | getpwnam
936 |  |  |  |  | getpwuid
937 |  |  |  |  | gmtime
938 |  |  |  |  | isatty
939 |  |  |  |  | kill
940 |  |  |  |  | lchown
941 |  |  |  |  | link
942 |  |  |  |  | localtime
943 |  |  |  |  | log
944 |  |  |  |  | mkdir
945 |  |  |  |  | nice
946 |  |  |  |  | open
947 |  |  |  |  | opendir
948 |  |  |  |  | pipe
949 |  |  |  |  | printf
950 |  |  |  |  | rand
951 |  |  |  |  | read
952 |  |  |  |  | readdir
953 |  |  |  |  | rename
954 |  |  |  |  | rewinddir
955 |  |  |  |  | rmdir
956 |  |  |  |  | sin
957 |  |  |  |  | sleep
958 |  |  |  |  | sprintf
959 |  |  |  |  | sqrt
960 |  |  |  |  | srand
961 |  |  |  |  | stat
962 |  |  |  |  | system
963 |  |  |  |  | time
964 |  |  |  |  | times
965 |  |  |  |  | umask
966 |  |  |  |  | unlink
967 |  |  |  |  | utime
968 |  |  |  |  | wait
969 |  |  |  |  | waitpid
970 |  |  |  |  | write
971 |  |  |  |  | );
972 |  |  |  |  |
973 |  |  |  |  | require Exporter;
974 |  |  |  |  | }
975 |  |  |  |  |
976 |  |  |  |  | # end of POSIX::SigAction::load_imports
977 | 1 | 12µs |  |  | 1;
|  |  |  |  | # spent 23µs within POSIX::CORE:match which was called: # once (23µs+0s) by POSIX::AUTOLOAD at line 40 sub POSIX::CORE:match; # opcode