X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=edca221d5998b0794fa5a53662b59f6d652514b8;hb=43ebabf558e7c5bbae6f16c67b2caf5275c72f1c;hp=0e0bf01a18e7a08e4a8e63fdc4403a0d8bb27a52;hpb=74efc1444f7b8653bb6d7aa493974934bc9787e1;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 0e0bf01..edca221 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -65,7 +65,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.7011'; +our $VERSION = '5.7012'; sub import { my ( $class, @arguments ) = @_; @@ -1273,22 +1273,28 @@ sub _stats_start_execute { # forward, locate the caller if ( my $parent = $c->stack->[-1] ) { - $c->stats->profile(begin => $action, - parent => "$parent" . $c->counter->{"$parent"}, - uid => $uid); + $c->stats->profile( + begin => $action, + parent => "$parent" . $c->counter->{"$parent"}, + uid => $uid, + ); } else { # forward with no caller may come from a plugin - $c->stats->profile(begin => $action, - uid => $uid); + $c->stats->profile( + begin => $action, + uid => $uid, + ); } } else { # root-level call - $c->stats->profile(begin => $action, - uid => $uid); + $c->stats->profile( + begin => $action, + uid => $uid, + ); } return $action; @@ -1296,7 +1302,7 @@ sub _stats_start_execute { sub _stats_finish_execute { my ( $c, $info ) = @_; - $c->stats->profile(end => $info); + $c->stats->profile( end => $info ); } =head2 $c->_localize_fields( sub { }, \%keys );