Changeset 29375 for trunk/tools/czarplot.pl
- Timestamp:
- Oct 11, 2010, 3:12:57 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czarplot.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czarplot.pl
r29320 r29375 22 22 my $histogram = undef; 23 23 my $timeSeries = undef; 24 my $rate = undef; 25 my $showCleanup = undef; 24 26 my $nebulous = undef; 25 27 my $savingToFile = undef; … … 33 35 "begin|b=s" => \$begin, 34 36 "end|e=s" => \$end, 35 "day| d=s" => \$day,37 "day|y=s" => \$day, 36 38 "output|o=s" => \$path, 37 39 "histogram|h" => \$histogram, 38 40 "nebulous|n" => \$nebulous, 41 "cleanup|c" => \$showCleanup, 42 "rate|r" => \$rate, 39 43 "timeseries|t" => \$timeSeries, 40 44 "verbose|v" => \$verbose, … … 53 57 if (!$timeSeries) { 54 58 print "* OPTIONAL: plot timeseries -t (default=on)\n";} 59 if (!$rate) { 60 print "* OPTIONAL: plot timeseries of rate -r (default=off)\n";} 61 if (!$showCleanup) { 62 $showCleanup = 0; 63 print "* OPTIONAL: include cleanup in timeseries -c (default=$showCleanup)\n";} 55 64 if (!$log) { 56 65 $log = 0; … … 70 79 print "* OPTIONAL: choose an end time -e <datetime> (default=now)\n";} 71 80 if (!$day) { 72 print "* OPTIONAL: choose a single day to plot - d<date> (default=today)\n";}81 print "* OPTIONAL: choose a single day to plot -y <date> (default=today)\n";} 73 82 if (!$path) { 74 83 print "* OPTIONAL: choose an output location -o <path> (default=none)\n"; … … 97 106 # sort out times 98 107 if($day) { 108 109 # day plots should run from about 6:30am until midnight 110 $begin = "$day 06:35"; 99 111 $end = "$day 23:59"; 100 $begin = "$day 06:35";101 112 } 102 113 else { … … 111 122 my $diskUsage = 1; # TODO 112 123 113 if (!$nebulous && $timeSeries) {$plotter->createTimeSeries($label, $stage, $begin, $end, $log);} 124 if ($rate) { 125 126 if (!$interval) {$interval = "1 HOUR";} 127 $plotter->createRateTimeSeries($label, $stage, $begin, $end, $interval, $log); 128 exit; 129 } 130 if (!$nebulous && $timeSeries) {$plotter->createTimeSeries($label, $stage, $begin, $end, $log, $showCleanup);} 114 131 if ($histogram) {$plotter->createHistogram($label, $begin, $end);} 115 132 if ($nebulous && $timeSeries) {$plotter->plotStorageTimeSeries($begin, $end);}
Note:
See TracChangeset
for help on using the changeset viewer.
