TOC | Index | (Page 17 of 29)| Chapter: Introduction | Gabor Szabo
<< Devel::Trace perl -d:T3 d1.pl >>

1.16 Devel::T3 - a profiler


# Simple profiler - count the number of lines

sub DB::DB {
    $DB::mycounter++;
}

END {
   print STDERR "Count: $DB::mycounter\n";
}