Changeset 28980 for branches/eam_branches/ipp-20100621/tools/czarplot.pl
- Timestamp:
- Aug 19, 2010, 6:50:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/tools/czarplot.pl
r28794 r28980 21 21 my $histogram = undef; 22 22 my $timeSeries = undef; 23 my $nebulous = undef; 23 24 my $savingToFile = undef; 24 25 … … 32 33 "output|o=s" => \$path, 33 34 "histogram|h" => \$histogram, 35 "nebulous|n" => \$nebulous, 34 36 "timeseries|t" => \$timeSeries, 35 37 "verbose|v" => \$verbose, … … 41 43 if (!$timeSeries) { 42 44 print "* OPTIONAL: plot timeseries -t (default=on)\n";} 45 if (!$nebulous) { 46 print "* OPTIONAL: plot nebulous disk space -n (default=off)\n";} 43 47 if (!$label) { 44 print "* OPTIONAL: choose a label -l <labellName> (default='all_ labels')\n";}48 print "* OPTIONAL: choose a label -l <labellName> (default='all_stdscience_labels')\n";} 45 49 if (!$stage) { 46 50 print "* OPTIONAL: choose a stage -s <chip|cam|warp|etc> (default=none)\n";} … … 57 61 58 62 # default values 59 if (!$label) {$label = "all_ labels";}60 if (!$ histogram && !$timeSeries) {$timeSeries = 1; $histogram = 1;}63 if (!$label) {$label = "all_stdscience_labels";} 64 if (!$nebulous && !$histogram && !$timeSeries) {$timeSeries = 1; $histogram = 0;} 61 65 if (!$verbose) {$verbose = 0;} 62 66 if (!$save_temps) {$save_temps = 0;} … … 67 71 $czarDb->setDateFormat("%Y%m%d-%H%i%s"); 68 72 69 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png " : "X11", $path, $save_temps);73 my $czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11", $path, $save_temps); 70 74 71 75 my @allStages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist"); … … 78 82 } 79 83 80 if ($timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end);} 84 my $diskUsage = 1; # TODO 85 86 if (!$nebulous && $timeSeries) {$czarplot->createTimeSeries($label, $stage, $begin, $end);} 81 87 if ($histogram) {$czarplot->createHistogram($label, $begin, $end);} 88 if ($nebulous && $timeSeries) {$czarplot->plotStorageTimeSeries($begin, $end);} 89 elsif ($nebulous) {$czarplot->plotDiskUsageHistogram();} 82 90
Note:
See TracChangeset
for help on using the changeset viewer.
