← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/getfix
  Run on Thu May 20 15:30:03 2010
Reported on Thu May 20 16:25:35 2010

File/wise/base/deliv/dev/lib/perl/x86_64-linux-thread-multi/WISE/CoUtilsXS.pm
Statements Executed16
Total Time0.000298 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
13870120.107700.10770WISE::CoUtilsXS::equecx (xsub)
13870120.102270.10227WISE::CoUtilsXS::radifs (xsub)
13870120.093810.09381WISE::CoUtilsXS::equgad (xsub)
2127.3e-57.3e-5WISE::CoUtilsXS::bootstrap (xsub)
2126.6e-56.6e-5WISE::CoUtilsXS::ecleqx (xsub)
00000WISE::CoUtilsXS::BEGIN
00000WISE::CoUtilsXS::rd2rad
00000WISE::CoUtilsXS::unpackbits

LineStmts.Exclusive
Time
Avg.Code
1package WISE::CoUtilsXS;
2
334.7e-51.6e-5use strict;
# spent 10µs making 1 call to strict::import
430.000206.8e-5use vars qw($VERSION @ISA @EXPORT);
# spent 43µs making 1 call to vars::import
5
611.0e-61.0e-6require Exporter;
711.0e-61.0e-6require DynaLoader;
8
911.0e-51.0e-5@ISA = qw(Exporter DynaLoader);
1016.0e-66.0e-6@EXPORT = qw(
11 eclequ ecleqx equecx galeqd equgad
12 rd2ve xy2rve ve2rd radifs
13 eqimg2ecl eqimg2gal
14 imgflip imgcheck img2map
15 aitfwd aitrev poleover poleoverrev
16 rd2rad solarrd
17 unpackbits
18 );
19
20100$VERSION = '1.00';
21
2211.5e-51.5e-5bootstrap WISE::CoUtilsXS $VERSION;
# spent 2.67ms making 1 call to DynaLoader::bootstrap
23
2411.0e-61.0e-6my $PI = atan2(1.0,1.0) * 4.0;
2511.0e-61.0e-6my $R2D = 180.0 / $PI;
2611.0e-61.0e-6my $RTD = $R2D;
27
28sub rd2rad { # Input/output in degrees
29 my ($lon1,$lat1,$lon2,$lat2) = @_;
30 return rd2dist($lon1/$R2D,$lat1/$R2D,$lon2/$R2D,$lat2/$R2D)*$R2D;
31}
32
33
34sub unpackbits {
35 my $bytes = shift; # Byte string
36 my $from = shift; # Start bit (0=MSB)
37 my $len = shift; # Number of bits to extract
38 my $sz = shift || 4; # Size of returned data in bytes
39 my $swap = shift || 0; # Swap
40 my $signx= shift || 0;
41
42 return bitunpack($bytes,$from,$len,$sz,$swap,$signx);
43}
44
45
4611.2e-51.2e-51;
47
48__END__
49
50
51
# spent 73µs within WISE::CoUtilsXS::bootstrap which was called # once (73µs+0) by DynaLoader::bootstrap at line 226 of /opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm
sub WISE::CoUtilsXS::bootstrap; # xsub
# spent 66µs within WISE::CoUtilsXS::ecleqx which was called # once (66µs+0) by WISE::CoUtils::_eclequ at line 58 of /wise/base/deliv/dev/lib/perl/WISE/CoUtils.pm
sub WISE::CoUtilsXS::ecleqx; # xsub
# spent 108ms within WISE::CoUtilsXS::equecx which was called 13869 times, avg 8µs/call: # 13869 times (108ms+0) by WISE::CoUtils::_equecl at line 57 of /wise/base/deliv/dev/lib/perl/WISE/CoUtils.pm, avg 8µs/call
sub WISE::CoUtilsXS::equecx; # xsub
# spent 93.8ms within WISE::CoUtilsXS::equgad which was called 13869 times, avg 7µs/call: # 13869 times (93.8ms+0) by WISE::CoUtils::_equgal at line 56 of /wise/base/deliv/dev/lib/perl/WISE/CoUtils.pm, avg 7µs/call
sub WISE::CoUtilsXS::equgad; # xsub
# spent 102ms within WISE::CoUtilsXS::radifs which was called 13869 times, avg 7µs/call: # 13869 times (102ms+0) by WISE::CoUtils::rd2radvec at line 207 of /wise/base/deliv/dev/lib/perl/WISE/CoUtils.pm, avg 7µs/call
sub WISE::CoUtilsXS::radifs; # xsub