} elsif (exists $cur_info{$cur_pid}{context}) {
$cur_info{$cur_pid}{context} .= "\n" . $line;
# Append to the query detail if one is defined
- } elsif ($error_only && exists $cur_info{$cur_pid}{detail}) {
+ } elsif (exists $cur_info{$cur_pid}{detail}) {
$cur_info{$cur_pid}{detail} .= "\n" . $line;
# After all append to the query if one is defined
} elsif (exists $cur_info{$cur_pid}{query}) {
<td>$max</td>
<td>$avg</td>
<td id="most-frequent-queries-examples-details-rank-$rank">
- <div id="query-f-$rank" class="sql sql-largesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
+ <div id="query-f-$rank" class="sql sql-middlesize"><i class="icon-copy" title="Click to select query"></i>$query</div>$md5
<!-- Details collapse -->
<div id="most-frequent-queries-details-rank-$rank" class="collapse">
<h3>Times Reported <small>Time consuming queries #$rank</small></h3>
$prefix_vars{'t_query'} =~ s/#011/\t/g;
}
- # Reject lines generated by debug tool
- if ( ($prefix_vars{'t_loglevel'} eq 'CONTEXT') && ($prefix_vars{'t_query'} =~ /SQL statement "/) ) {
- return;
- }
-
-
# Save previous temporary file information with same pid to not overwrite it
if ($prefix_vars{'t_loglevel'} =~ $main_log_regex) {
if (($prefix_vars{'t_query'} !~ /temporary file: path .*, size \d+/) && exists $cur_temp_info{$t_pid}) {
# Special cases when a STATEMENT is parsed
if ($prefix_vars{'t_loglevel'} eq 'STATEMENT') {
# Stores temporary file statement if a temporary record with the same pid exists
- if ( exists $cur_temp_info{$t_pid} ) {
+ if ( exists $cur_temp_info{$t_pid}{size}) {
# Store query of the last temporary file found.
$cur_temp_info{$t_pid}{query} = $prefix_vars{'t_query'};
return;