ShowTimes — insert timing information in debug output
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
).
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 "#
".
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 5434 (context shows lines 5434-5446)
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"); } }