| 1 | package Plack::Handler::Twiggy::Prefork::Metabolic; | ||||||||||
| 2 | 16 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 16 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 16 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 6 | 16 | my $class = shift; | |||||||||
| 7 | 16 | return bless {@_}, $class; | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | 16 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 11 | 16 | my ($self, $app) = @_; | |||||||||
| 12 | |||||||||||
| 13 | my $class = $ENV{SERVER_STARTER_PORT} | ||||||||||
| 14 | 16 | ▶ | ? 'Twiggy::Prefork::Metabolic::Server::SS' | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | : 'Twiggy::Prefork::Metabolic::Server'; | ||||||||||
| 16 | 16 | eval "require $class"; | |||||||||
| 17 | 16 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | |||||||||||
| 19 | 16 | return $class->new(%{$self})->run($app); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 16 | 1; | |||||||||
| 23 | |||||||||||
| 24 | __END__ | ||||||||||