DashProfiler
view release on metacpan or search on metacpan
lib/DashProfiler/Auto.pm view on Meta::CPAN
=cut
sub import {
my $class = shift;
croak "DashProfile::Auto doesn't support explicit imports"
if @_;
local $DashProfiler::Import::ExportLevel = $DashProfiler::Import::ExportLevel + 1;
my $caller_file = (caller)[1];
$caller_file =~ s:.*[/\\]::; # delete everything upto and including the last slash or backslash
$class->SUPER::import( auto_profiler => [ $caller_file ] );
}
1;
=head1 AUTHOR
DashProfiler by Tim Bunce, L<http://www.tim.bunce.name> and
( run in 0.432 second using v1.01-cache-2.11-cpan-a3c8064c92c )