Variables

$oktorun

my $oktorun

$ex_dbh

my $ex_dbh

$ep_dbh

my $ep_dbh

$ps_dbh

my $ps_dbh

$aux_dbh

my $aux_dbh

Functions

main

sub main

print_reports

sub print_reports

find_role

sub find_role

sig_int

sub sig_int

make_alt_attrib

sub make_alt_attrib

check_orderby_attrib

sub check_orderby_attrib

read_timeout

sub read_timeout

get_cxn

sub get_cxn

get_worst_queries

sub get_worst_queries

print_table_access_report

sub print_table_access_report

update_query_review_tables

sub update_query_review_tables

save_results

sub save_results

verify_run_time

sub verify_run_time

Verify that the given run mode and run time are valid.  If the run mode is “interval”, the time boundary (in seconds) for the run time is returned if valid.  Else, undef is returned because modes “clock” and “event” have no boundaries that need to be verified.  In any case the sub will die if something is invalid, so the caller should eval their call.  The eval error message is suitable for OptionParser::save_error().

Parameters

%argsArguments

Required Arguments

run_modeName of run mode (e.g.  “clock”, “event” or “interval”)
run_timeRun time in seconds

Returns

Time boundary in seconds if run mode and time are valid; dies if they are not.  Time boundary is undef except for interval run mode.

_d

sub _d
my $oktorun
my $ex_dbh
my $ep_dbh
my $ps_dbh
my $aux_dbh
sub main
sub print_reports
sub find_role
sub sig_int
sub make_alt_attrib
sub check_orderby_attrib
sub read_timeout
sub get_cxn
sub get_worst_queries
sub print_table_access_report
sub update_query_review_tables
sub save_results
sub verify_run_time
Verify that the given run mode and run time are valid.
sub _d
sub save_error
Save an error message to be reported later by usage_or_errors().
Close