← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/framedepth
  Run on Fri May 28 15:23:26 2010
Reported on Fri May 28 15:26:24 2010

File/wise/base/deliv/dev/lib/perl/WISE/Release.pm
Statements Executed14
Total Time0.000402 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
00000WISE::Release::BEGIN
00000WISE::Release::new
00000WISE::Release::release
00000WISE::Release::revision
00000WISE::Release::version

LineStmts.Exclusive
Time
Avg.Code
1#! /usr/bin/env perl
2
333.5e-51.2e-5use strict;
# spent 16µs making 1 call to strict::import
437.1e-52.4e-5use warnings;
# spent 25µs making 1 call to warnings::import
5
6#use lib qw(/wise/base/deliv/dev/lib/perl);
7
8package WISE::Release;
9
1030.000299.6e-5use vars qw($VERSION $RELEASE $REVISION);
# spent 56µs making 1 call to vars::import
11
1211.0e-61.0e-6my $version = '$Id: Release.pm 7228 2010-02-08 23:15:10Z tim $ ';
13
1411.0e-61.0e-6$VERSION = 1.00;
15100$REVISION= '$Id: Release.pm 7228 2010-02-08 23:15:10Z tim $ ';
1611.0e-61.0e-6$RELEASE = 'NONE';
17
18sub new {
19 my $class = shift;
20 my %this;
21
22 $this{version} = $VERSION;
23 # The values will only cahnge here if it's current value matches
24 # the default pattern.
25 $this{revision} = $REVISION;
26 $this{revision} =~ s|\$[I]d:\s*(.*?)\s*\$|$1|;
27 $this{revision} ||= 'NONE';
28 $this{release} = $RELEASE;
29 $this{release} =~ s|\$[N]ame:\s*(.*?)\s*\$|$1|;
30 $this{release} ||= 'NONE';
31
32 return bless \%this,$class;
33}
34
35sub version { shift->{version}; }
36sub revision { shift->{revision}; }
37sub release {
38 my $this=shift;
39 $RELEASE = $this->{release} = $_[0] || "NONE" if defined $_[0];
40 $this->{release};
41}
42
4316.0e-66.0e-61;