Name

ShowTimes — insert timing information in debug output

SYNOPSIS

No | Yes

DESCRIPTION

The ShowTimes directive makes Interchange include timing statistics in debug output.

Debug output has to be enabled for this option to work (see DEBUG and DebugFile).

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Enabling ShowTimes

ShowTimes 1

NOTES

Calls to the show_times() function are commented out in most of the Interchange source. To enable ShowTimes, you also need to search for occurrences of ShowTimes in the actual source, and un-comment the appropriate lines, then restart Interchange of course. You can effectively search the source by executing grep -r ShowTimes * within ICROOT. Lines you're interested for will look like this:

lib/Vend/Server.pm:#show_times("begin response send") if $Global::ShowTimes;

and you will need to remove the "#".

AVAILABILITY

ShowTimes is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 505

['ShowTimes',     'yesno',          0],

Source: lib/Vend/Config.pm
Line 5414 (context shows lines 5414-5426)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Stefan Hornburg (Racke)

SEE ALSO

DebugFile(7ic)

DocBook! Interchange!