Changeset 29686 for trunk/tools/czarplot.pl
- Timestamp:
- Nov 5, 2010, 3:54:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czarplot.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czarplot.pl
r29580 r29686 9 9 use czartool::CzarDb; 10 10 use czartool::Plotter; 11 use czartool::StageMetrics; 11 12 12 13 my $czarDbName = "czardb"; … … 57 58 print "* UNKNKOWN: option @ARGV\n"; 58 59 } 60 if ($analysis && !$stage) { 61 $quit = 1; 62 print "* REQUIRED: choose a stage for analsis -s <chip|cam|warp|etc> (default=none)\n";} 59 63 if (!$histogram) { 60 64 print "* OPTIONAL: plot histogram -h (default=off)\n";} … … 98 102 99 103 # default values 100 if (!$nebulous && !$histogram && !$ timeSeries) {$timeSeries = 1; $histogram = 0;}104 if (!$nebulous && !$histogram && !$analysis && !$timeSeries) {$timeSeries = 1; $histogram = 0;} 101 105 if (!$verbose) {$verbose = 0;} 102 106 if (!$save_temps) {$save_temps = 0;} … … 121 125 $begin = "$day 06:35"; 122 126 $end = "$day 23:59"; 127 print "JKJKJK '$begin' '$end' \n"; 128 123 129 } 124 130 else { … … 147 153 if($analysis) { 148 154 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"; 155 my $stageMetrics = new czartool::StageMetrics($stage, $label, $begin, $end); 156 if ($czarDb->runAnalysis($stageMetrics)) {$stageMetrics->printMe();} 159 157 }
Note:
See TracChangeset
for help on using the changeset viewer.
