# Activate storage of the explain plan generated by auto_explain
} elsif ($prefix_vars{'t_query'} =~ s/duration: ([0-9\.]+) ms\s+plan://is) {
$cur_plan_info{$t_pid}{duration} = $1;
+ $prefix_vars{'t_duration'} = $1;
+ my $k = &get_hist_inbound($1, @histogram_query_time);
+ $overall_stat{histogram}{query_time}{$k}++;
+ $overall_stat{histogram}{query_total}++;
# Log line without duration at all
} elsif ($prefix_vars{'t_query'} =~ s/(query|statement): //is) {
$t_action = $1;