IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2010, 12:01:26 PM (16 years ago)
Author:
rhenders
Message:

Added anaysis option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarplot.pl

    r29437 r29580  
    2727my $nebulous = undef;
    2828my $savingToFile = undef;
     29my $analysis = undef;
    2930my $log = undef;
    3031
     
    4344        "rate|r" => \$rate,
    4445        "deriv|d" => \$deriv,
     46        "analysis|a" => \$analysis,
    4547        "timeseries|t" => \$timeSeries,
    4648        "verbose|v" => \$verbose,
     
    6466    $deriv = 0;
    6567    print "* OPTIONAL: plot first derivative           -d                          (default=$deriv)\n";}
     68if (!$analysis) {
     69    $analysis = 0;
     70    print "* OPTIONAL: include analysis                -a                          (default=$analysis)\n";}
    6671if (!$showCleanup) {
    6772    $showCleanup = 0;
     
    139144elsif ($nebulous) {$plotter->plotDiskUsageHistogram();}
    140145
     146
     147if($analysis) {
     148
     149    my ($started, $finished, $stuck, $processed, $pending, $faults, $totalTime);
     150    $czarDb->runAnalysis($label, $stage, $begin, $end, \$started, \$finished, \$stuck, \$processed, \$pending, \$faults, \$totalTime);
     151
     152    if (defined $started) {print "* Processing started at $started\n";}
     153    if (defined $finished) {print "* Processing finished at $finished and took $totalTime\n";}
     154    else {print "* Processing has not finished\n";}
     155    if (defined $stuck) {print "* Processing has been stuck since $stuck\n";}
     156    print "* $processed exposures have been processed, with $pending pending and $faults faults\n";
     157
     158    print "*******************************************************************************\n";
     159}
Note: See TracChangeset for help on using the changeset viewer.