Changeset 32763 for trunk/ippMonitor
- Timestamp:
- Nov 22, 2011, 12:48:10 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/czartool/Plotter.pm (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czartool/Plotter.pm
r32093 r32763 10 10 use czartool::Config; 11 11 12 my @allStages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist", "pub"); 12 my @allStages = ( 13 "burntool", 14 "chip", 15 "cam", 16 "fake", 17 "warp", 18 "stack", 19 "diff", 20 "magic", 21 "magicDS", 22 "dist", 23 "pub"); 24 25 my @allIppToPspsStages = ( 26 "processed", 27 "loaded_to_datastore", 28 "loaded_to_ODM", 29 "merge_worthy", 30 "deleted_datastore", 31 "deleted_dxlayer", 32 "merged", 33 "deleted_local"); 34 13 35 14 36 ########################################################################### … … 75 97 ########################################################################### 76 98 # 99 # Sets plotter to use standard IPP mode, i.e. chip, cam etc 100 # 101 ########################################################################### 102 sub setStandardMode { 103 my ($self) = @_; 104 105 $self->{allStages} = \@allStages; 106 } 107 108 ########################################################################### 109 # 110 # Sets plotter to use ippToPsps mode, i.e. processed, loaded_to_datastore etc 111 # 112 ########################################################################### 113 sub setIppToPspsMode { 114 my ($self) = @_; 115 116 $self->{allStages} = \@allIppToPspsStages; 117 } 118 119 ########################################################################### 120 # 77 121 # Some initialisation code common to all constructors 78 122 # … … 83 127 $self->{_gpc1Db} = $self->{_config}->getGpc1Instance(); 84 128 $self->{_czarDb} = $self->{_config}->getCzarDbInstance(); 129 $self->setStandardMode(); 85 130 } 86 131 … … 140 185 my $stages = undef; 141 186 if (!$selectedStage) { 142 $stages = \@ allStages;187 $stages = \@{$self->{allStages}}; 143 188 $selectedStage = 'all_stages'; 144 189 } … … 203 248 "set style histogram rowstacked;" . 204 249 "set style fill solid border -1;" . 205 "set ylabel \" Exposures processed per $interval\";" .250 "set ylabel \"Items processed per $interval\";" . 206 251 "set boxwidth 0.75;" . 207 252 "plot "; 208 253 209 254 my $first = 1; 210 foreach my $stage (@ allStages) {255 foreach my $stage (@{$self->{allStages}}) { 211 256 212 257 … … 226 271 ########################################################################### 227 272 # 228 # Plots a time series for all stagesfor this label273 # Plots a time series for all or one stage for this label 229 274 # 230 275 ########################################################################### … … 238 283 my $stages = undef; 239 284 240 if (!$selectedStage) {$stages = \@ allStages;}285 if (!$selectedStage) {$stages = \@{$self->{allStages}};} 241 286 else {$stages = ["$selectedStage"]}; 242 287 … … 297 342 $timeDiff, 298 343 "", 299 " Exposures");344 "Items"); 300 345 } 301 346 … … 314 359 $timeDiff, 315 360 "", 316 "Log( Exposures)");361 "Log(Items)"); 317 362 } 318 363 … … 331 376 $timeDiff, 332 377 "", 333 " Exposures per hour");378 "Items per hour"); 334 379 } 335 380 } … … 351 396 my $stage = undef; 352 397 my $pendingMinusFaults = undef; 353 foreach $stage (@ allStages) {398 foreach $stage (@{$self->{allStages}}) { 354 399 355 400 if (!$self->{_czarDb}->countProcessedPendingAndFaults( … … 381 426 "set style histogram rowstacked;" . 382 427 "set style fill solid border -1;" . 383 "set ylabel \" Exposures\";" .428 "set ylabel \"Items\";" . 384 429 "set boxwidth 0.75;" . 385 430 "plot '".$tmpFile->filename."' using 2:xtic(1) title \"Faults\" lt 1, '' using 3 title \"Processed\" lt 2, '' using 4 title \"Pending\" lt 7;" . … … 520 565 my $firstIn = 1; 521 566 # loop through stages array so that they are ordered properly (not maintained in hash) 522 foreach my $stage (@allStages) { 567 #foreach my $stage (@allStages) { 568 foreach my $stage (@{$self->{allStages}}) { 523 569 524 570 if(!$gnuplotFiles->{$stage}) {next;} … … 620 666 "set title \"Nebulous disk use across IPP cluster ($totalPercent of total allocated)\";" . 621 667 "set style fill solid 1.00 border -1;" . 668 "set key center top;" . 622 669 "set style histogram rowstacked;" . 623 670 "set style data histograms;" .
Note:
See TracChangeset
for help on using the changeset viewer.
