← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:42:38 2010
Reported on Wed Nov 17 22:06:08 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Set/Object/Weak.pm
StatementsExecuted 14 statements in 912µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11173µs336µsSet::Object::Weak::::BEGIN@28Set::Object::Weak::BEGIN@28
11159µs381µsSet::Object::Weak::::BEGIN@32Set::Object::Weak::BEGIN@32
11136µs236µsSet::Object::Weak::::BEGIN@31Set::Object::Weak::BEGIN@31
11134µs114µsSet::Object::Weak::::BEGIN@30Set::Object::Weak::BEGIN@30
0000s0sSet::Object::Weak::::newSet::Object::Weak::new
0000s0sSet::Object::Weak::::setSet::Object::Weak::set
0000s0sSet::Object::Weak::::weak_setSet::Object::Weak::weak_set
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2=head1 NAME
3
- -
26package Set::Object::Weak;
27
283117µs2598µs
# spent 336µs (73+262) within Set::Object::Weak::BEGIN@28 which was called: # once (73µs+262µs) by KiokuDB::Collapser::Buffer::BEGIN@5 at line 28
use base qw(Set::Object); # boo hiss no moose::role yet I hear you say
# spent 336µs making 1 call to Set::Object::Weak::BEGIN@28 # spent 262µs making 1 call to base::import
29
30395µs2195µs
# spent 114µs (34+80) within Set::Object::Weak::BEGIN@30 which was called: # once (34µs+80µs) by KiokuDB::Collapser::Buffer::BEGIN@5 at line 30
use base qw(Exporter); # my users would hate me otherwise
# spent 114µs making 1 call to Set::Object::Weak::BEGIN@30 # spent 80µs making 1 call to base::import
313104µs2437µs
# spent 236µs (36+200) within Set::Object::Weak::BEGIN@31 which was called: # once (36µs+200µs) by KiokuDB::Collapser::Buffer::BEGIN@5 at line 31
use vars qw(@ISA @EXPORT_OK);
# spent 236µs making 1 call to Set::Object::Weak::BEGIN@31 # spent 200µs making 1 call to vars::import
323576µs2703µs
# spent 381µs (59+322) within Set::Object::Weak::BEGIN@32 which was called: # once (59µs+322µs) by KiokuDB::Collapser::Buffer::BEGIN@5 at line 32
use Set::Object qw(blessed);
# spent 381µs making 1 call to Set::Object::Weak::BEGIN@32 # spent 322µs making 1 call to Exporter::import
33
3417µsour @EXPORT_OK = qw(weak_set set);
35
36=head1 CONSTRUCTORS
37
- -
47sub new {
48 my $class = shift;
49 my $self = $class->SUPER::new();
50 $self->weaken;
51 $self->insert(@_);
52 $self;
53}
54
55=item weak_set( ... )
56
- -
63sub weak_set {
64 __PACKAGE__->new(@_);
65}
66
67=item set( ... )
68
- -
82sub set {
83 my $class = __PACKAGE__;
84 if (blessed $_[0] and $_[0]->isa("Set::Object")) {
85 $class = (shift)->strong_pkg;
86 }
87 $class->new(@_);
88}
89
90112µs1;
91
92__END__