Changeset 29765
- Timestamp:
- Nov 12, 2010, 3:11:27 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/czarplot.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czarplot.pl
r29737 r29765 8 8 9 9 use czartool::CzarDb; 10 use czartool::Gpc1Db; 10 11 use czartool::Plotter; 11 12 use czartool::StageMetrics; … … 24 25 my $timeSeries = undef; 25 26 my $rate = undef; 27 my $magicMask = undef; 26 28 my $rateInterval = undef; 27 29 my $deriv = undef; … … 30 32 my $savingToFile = undef; 31 33 my $analysis = undef; 34 my $exposureId = undef; 32 35 my $log = undef; 33 36 … … 38 41 "timeinpast|p=s" => \$timeinpast, 39 42 "rateinterval|i=s" => \$rateInterval, 43 "exposureid|x=s" => \$exposureId, 44 "mask|m" => \$magicMask, 40 45 "begin|b=s" => \$begin, 41 46 "end|e=s" => \$end, … … 67 72 if (!$timeSeries) { 68 73 print "* OPTIONAL: plot timeseries -t (default=on)\n";} 74 if (!$magicMask) { 75 print "* OPTIONAL: plot magic mask for these times -m (default=off)\n";} 76 if (!$exposureId) { 77 print "* OPTIONAL: set exposure ID for magic mask -x (default=none)\n";} 69 78 if (!$rate) { 70 print "* OPTIONAL: plot timeseries of rate-r (default=off)\n";}79 print "* OPTIONAL: plot histogram of rate -r (default=off)\n";} 71 80 if (!$deriv) { 72 81 $deriv = 0; … … 106 115 107 116 # default values 108 if (!$ nebulous && !$histogram && !$analysis && !$timeSeries) {$timeSeries = 1; $histogram = 0;}117 if (!$rate && !$magicMask && !$nebulous && !$histogram && !$analysis && !$timeSeries) {$timeSeries = 1;} 109 118 if (!$verbose) {$verbose = 0;} 110 119 if (!$save_temps) {$save_temps = 0;} … … 112 121 else {$savingToFile = 1;} 113 122 123 my $gpc1Db = new czartool::Gpc1Db("gpc1", "ippdb01", "ippuser", "ippuser"); 114 124 my $czarDb = new czartool::CzarDb($czarDbName, "ippdb01", "ipp", "ipp", $verbose, $save_temps); 115 125 $czarDb->setDateFormat("%Y%m%d-%H%i%s"); … … 117 127 118 128 my $plotter = new czartool::Plotter( 129 $gpc1Db, 119 130 $czarDb, 120 131 "%Y%m%d-%H%M%S", … … 151 162 if ($nebulous && $timeSeries) {$plotter->plotStorageTimeSeries($begin, $end);} 152 163 elsif ($nebulous) {$plotter->plotDiskUsageHistogram();} 164 if ($magicMask) { 165 166 if ($exposureId) {$plotter->plotMagicMaskFractionForThisExposure($exposureId);} 167 else {$plotter->plotMagicMaskFractionHistogram($begin, $end);} 153 168 169 } 154 170 155 171 if($analysis) {
Note:
See TracChangeset
for help on using the changeset viewer.
