Help spot serious inefficiencies during development.
print '<p class="error"><strong>Fatal error</strong>: '.$html."</p>\n\n";
};
print '<p class="error"><strong>Fatal error</strong>: '.$html."</p>\n\n";
};
+BEGIN {
+ require Time::HiRes;
+ our $Time = [Time::HiRes::gettimeofday];
+}
+
our $style;
our $showkeys = !exists $get{keys} ? undef :
($get{keys} ne '0' && ($get{keys} || 'always'));
our $style;
our $showkeys = !exists $get{keys} ? undef :
($get{keys} ne '0' && ($get{keys} || 'always'));
print qq{</head>\n\n<body id="$file">\n};
# dev indicator
print qq{</head>\n\n<body id="$file">\n};
# dev indicator
+ my $Dev = $ENV{HTTP_HOST} =~ /\bdev\./;
printf '<p style="%s">beta</p>', join('; ',
'position: fixed',
'right: 1em',
printf '<p style="%s">beta</p>', join('; ',
'position: fixed',
'right: 1em',
'border-width: 1ex 0',
'z-index: 1',
'background: inherit',
'border-width: 1ex 0',
'z-index: 1',
'background: inherit',
- ) if $ENV{HTTP_HOST} =~ /\bdev\./;
# prepare trailing output
PLP_END {
# prepare trailing output
PLP_END {
created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
<a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="license copyright"
title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
<a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="license copyright"
title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
+ say sprintf '• %.3fs', Time::HiRes::tv_interval($Time) if $Dev;
+ say '</p>';
+ say '';
+ say '</html>';