Changeset 34249 for trunk/ippMonitor/czartool/czarplot.pl
- Timestamp:
- Jul 31, 2012, 2:20:53 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/czarplot.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czarplot.pl
r32796 r34249 61 61 print "* OPTIONAL: plot histogram -h (default=off)\n";} 62 62 if (!$timeSeries) { 63 print "* OPTIONAL: plot timeseries -t (default=on)\n";} 63 print "* OPTIONAL: plot timeseries -t (default=on)\n";} 64 64 if (!$magicMask) { 65 print "* OPTIONAL: plot magic mask for these times -m (default=off)\n";} 65 print "* OPTIONAL: plot magic mask for these times -m (default=off)\n";} 66 66 if (!$exposureId) { 67 print "* OPTIONAL: set exposure ID for magic mask -x (default=none)\n";} 67 print "* OPTIONAL: set exposure ID for magic mask -x (default=none)\n";} 68 68 if (!$rate) { 69 print "* OPTIONAL: plot histogram of rate -r (default=off)\n";} 69 print "* OPTIONAL: plot histogram of rate -r (default=off)\n";} 70 70 if (!$log) { 71 71 $log = 0; 72 72 print "* OPTIONAL: use log plots -g (default=$log)\n";} 73 73 if (!$nebulous) { 74 print "* OPTIONAL: plot nebulous disk space -n (default=off)\n";} 74 print "* OPTIONAL: plot nebulous disk space -n (default=off)\n";} 75 75 if (!$label) { 76 76 $label = "all_stdscience_labels"; … … 79 79 print "* OPTIONAL: choose a stage -s <chip|cam|warp|etc> (default=none)\n";} 80 80 if (!$timeinpast) { 81 print "* OPTIONAL: choose time interval in past -p <'1 hour'|'1 day'|etc> (default=none\n";} 81 print "* OPTIONAL: choose time interval in past -p <'1 hour'|'1 day'|etc> (default=none\n";} 82 82 if (!$rateInterval) { 83 print "* OPTIONAL: time interval for rate plot -i <'1 hour'|'1 day'|etc> (default=depends on time frame)\n";} 83 print "* OPTIONAL: time interval for rate plot -i <'1 hour'|'1 day'|etc> (default=depends on time frame)\n";} 84 84 if (!$begin) { 85 print "* OPTIONAL: choose a begin time -b <datetime> (default=18:00)\n";} 85 print "* OPTIONAL: choose a begin time -b <datetime> (default=18:00)\n";} 86 86 if (!$end) { 87 print "* OPTIONAL: choose an end time -e <datetime> (default=now)\n";} 87 print "* OPTIONAL: choose an end time -e <datetime> (default=now)\n";} 88 88 if (!$day) { 89 print "* OPTIONAL: choose a single day to plot -d <date> (default=today)\n";} 89 print "* OPTIONAL: choose a single day to plot -d <date> (default=today)\n";} 90 90 if (!$path) { 91 91 print "* OPTIONAL: choose an output location -o <path> (default=none)\n"; 92 } 92 } 93 93 if (!$psps) { 94 print "* OPTIONAL: plot ippToPsps stages -u (default=off)\n";} 94 print "* OPTIONAL: plot ippToPsps stages -u (default=off)\n";} 95 95 print "*\n*******************************************************************************\n"; 96 96 … … 110 110 my $newDayTime = $config->getMetricsStartTime(); 111 111 112 my $plotter = undef; 112 my $plotter = undef; 113 113 if ($savingToFile) { 114 114 … … 122 122 if ($psps) {$plotter->setIppToPspsMode();} 123 123 124 # if a single day has been chosen 124 # if a single day has been chosen 125 125 if($day) { 126 126 … … 134 134 # plots should span 24 housr from previous day 135 135 my $dayBefore = $czarDb->subtractInterval($day, "1 DAY"); 136 136 137 137 $begin = "$dayBefore $newDayTime"; 138 138 $end = "$day $newDayTime"; … … 147 147 my $yesterday = $czarDb->subtractInterval($today, "1 DAY"); 148 148 149 149 150 150 if ($timeinpast) {$begin = $czarDb->subtractInterval($end, $timeinpast);} 151 151 elsif ($czarDb->isBefore($end, "$today $newDayTime")) {$begin = "$yesterday $newDayTime";} … … 166 166 167 167 if ($histogram) {$plotter->createHistogram($label, $begin, $end);} 168 if ($nebulous && $timeSeries) {$plotter->plotStorageTimeSeries($begin, $end);} 169 elsif ($nebulous) {$plotter->plotDiskUsageHistogram();} 168 if ($nebulous && $timeSeries) { 169 $plotter->plotStorageTimeSeries($begin, $end); 170 } 171 elsif ($nebulous) { 172 $plotter->plotDiskUsageHistogram(); 173 $plotter->plotDiskUsageHistogramLarge(); 174 } 170 175 if ($magicMask) { 171 176
Note:
See TracChangeset
for help on using the changeset viewer.
