Working on a plugin - Scanning question
>> the involved sql queries are:
>
> Time each of these queries to figure out which one burns the most CPU
> cycle.
>
> my $t = time();
> runSQL1(); # whatever
> warn "SQL1: " . (time() - $t);
>
> Or similar. Poor man's instrumentation.
Oh, just saw that Erland did add a lot of timing measurements already.
Run LMS with debug mode for plugin.trackstat, then provide the
server.log file.
>> the involved sql queries are:
>
> Time each of these queries to figure out which one burns the most CPU
> cycle.
>
> my $t = time();
> runSQL1(); # whatever
> warn "SQL1: " . (time() - $t);
>
> Or similar. Poor man's instrumentation.
Oh, just saw that Erland did add a lot of timing measurements already.
Run LMS with debug mode for plugin.trackstat, then provide the
server.log file.
Comment