From: Sebastian Riedel Date: Sat, 2 Apr 2005 17:15:49 +0000 (+0000) Subject: prettier statistics X-Git-Tag: 5.7099_04~1621 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=39de91b0c198551ced998d476eadb266d62ceca0 prettier statistics --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 750f3fe..593daeb 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -127,11 +127,13 @@ sub execute { my ( $c, $class, $code ) = @_; $class = $c->comp($class) || $class; $c->state(0); + my $callsub = ( caller(1) )[3]; eval { if ( $c->debug ) { my $action = $c->actions->{reverse}->{"$code"}; $action = "/$action" unless $action =~ /\-\>/; + $action = " $action" if $callsub =~ /forward$/; my ( $elapsed, @state ) = $c->benchmark( $code, $class, $c, @{ $c->req->args } ); push @{ $c->{stats} }, @@ -176,7 +178,7 @@ sub finalize { } if ( $c->response->output && !$c->response->content_length ) { - use bytes; # play safe with a utf8 aware perl + use bytes; # play safe with a utf8 aware perl $c->response->content_length( length $c->response->output ); }