Index: /trunk/tools/czarplot.pl
===================================================================
--- /trunk/tools/czarplot.pl	(revision 29579)
+++ /trunk/tools/czarplot.pl	(revision 29580)
@@ -27,4 +27,5 @@
 my $nebulous = undef;
 my $savingToFile = undef;
+my $analysis = undef;
 my $log = undef;
 
@@ -43,4 +44,5 @@
         "rate|r" => \$rate,
         "deriv|d" => \$deriv,
+        "analysis|a" => \$analysis,
         "timeseries|t" => \$timeSeries,
         "verbose|v" => \$verbose,
@@ -64,4 +66,7 @@
     $deriv = 0;
     print "* OPTIONAL: plot first derivative           -d                          (default=$deriv)\n";} 
+if (!$analysis) {
+    $analysis = 0;
+    print "* OPTIONAL: include analysis                -a                          (default=$analysis)\n";} 
 if (!$showCleanup) {
     $showCleanup = 0;
@@ -139,2 +144,16 @@
 elsif ($nebulous) {$plotter->plotDiskUsageHistogram();}
 
+
+if($analysis) {
+
+    my ($started, $finished, $stuck, $processed, $pending, $faults, $totalTime);
+    $czarDb->runAnalysis($label, $stage, $begin, $end, \$started, \$finished, \$stuck, \$processed, \$pending, \$faults, \$totalTime);
+
+    if (defined $started) {print "* Processing started at $started\n";}
+    if (defined $finished) {print "* Processing finished at $finished and took $totalTime\n";}
+    else {print "* Processing has not finished\n";}
+    if (defined $stuck) {print "* Processing has been stuck since $stuck\n";}
+    print "* $processed exposures have been processed, with $pending pending and $faults faults\n";
+
+    print "*******************************************************************************\n";
+}
