Changeset 29119 for trunk/tools/czarplot.pl
- Timestamp:
- Sep 3, 2010, 3:55:23 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czarplot.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czarplot.pl
r29114 r29119 8 8 9 9 use czartool::CzarDb; 10 use czartool:: Czarplot;10 use czartool::Plotter; 11 11 12 12 my $czarDbName = "czardb"; … … 85 85 86 86 87 # GENE PLOTS my $ czarplot = new czartool::Czarplot($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png size 1280,960 font \"/usr/share/fonts/corefonts/arial.ttf\" 12" : "X11", $path, $save_temps);88 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);87 # GENE PLOTS my $plotter = new czartool::Plotter($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png size 1280,960 font \"/usr/share/fonts/corefonts/arial.ttf\" 12" : "X11", $path, $save_temps); 88 my $plotter = new czartool::Plotter($czarDb, "%Y%m%d-%H%M%S", $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11", $path, $save_temps); 89 89 90 90 # sort out times … … 92 92 if (!$begin) { 93 93 if ($interval) {$begin = $czarDb->subtractInterval($end, $interval);} 94 else {$begin = strftime('%Y-%m-%d 06:3 0',localtime);}94 else {$begin = strftime('%Y-%m-%d 06:35',localtime);} 95 95 } 96 96 97 97 my $diskUsage = 1; # TODO 98 98 99 if (!$nebulous && $timeSeries) {$ czarplot->createTimeSeries($label, $stage, $begin, $end, !$log, $log);}100 if ($histogram) {$ czarplot->createHistogram($label, $begin, $end);}101 if ($nebulous && $timeSeries) {$ czarplot->plotStorageTimeSeries($begin, $end);}102 elsif ($nebulous) {$ czarplot->plotDiskUsageHistogram();}99 if (!$nebulous && $timeSeries) {$plotter->createTimeSeries($label, $stage, $begin, $end, $log);} 100 if ($histogram) {$plotter->createHistogram($label, $begin, $end);} 101 if ($nebulous && $timeSeries) {$plotter->plotStorageTimeSeries($begin, $end);} 102 elsif ($nebulous) {$plotter->plotDiskUsageHistogram();} 103 103
Note:
See TracChangeset
for help on using the changeset viewer.
