Logo ROOT   6.08/07
Reference Guide
TProofProgressMemoryPlot.h
Go to the documentation of this file.
1 // @(#)root/sessionviewer:$Id$
2 // Author: Anna Kreshuk 18/07/2008
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProofProgressMemoryPlot
13 #define ROOT_TProofProgressMemoryPlot
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofProgressMemoryPlot //
18 // //
19 // This class implements a dialog, used to display the memory footprint //
20 // on the proof workers and master. For the workers, memory is plotted //
21 // as a function of number of events processed. For the master, it is //
22 // plotted as a function of number of objects merged //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #ifndef ROOT_TGFrame
27 #include "TGFrame.h"
28 #endif
29 
30 class TGListBox;
31 class TGTextButton;
34 class TGSplitButton;
35 class TProofLog;
36 class TMultiGraph;
37 class TGraph;
38 class TProofLogElem;
39 
41 
42  protected:
46  TGSplitButton *fAllWorkers; // display all workers button
54 
55  TGListBox* BuildLogList(TGFrame *parent);
58  TGraph* DoAveragePlot(Int_t &max_el, Int_t &min_el);
59  TGraph* DoAveragePlotOld(Int_t &max_el, Int_t &min_el);
60 
62 
63  public:
65  virtual ~TProofProgressMemoryPlot();
66 
67  void Clear(Option_t * = 0);
68  void DoPlot();
69  void Select(Int_t id);
70 
71  ClassDef(TProofProgressMemoryPlot,0) //PROOF progress memory plots
72 };
73 
74 #endif
TGListBox * BuildLogList(TGFrame *parent)
Build the list of workers.
long long Long64_t
Definition: RtypesCore.h:69
TGraph * DoAveragePlot(Int_t &max_el, Int_t &min_el)
Create the average plots.
const char Option_t
Definition: RtypesCore.h:62
TGraph * DoWorkerPlot(TProofLogElem *ple)
Make a memory consumption graph for a worker.
TH1 * h
Definition: legend2.C:5
A TMultiGraph is a collection of TGraph (or derived) objects.
Definition: TMultiGraph.h:37
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGraph * DoAveragePlotOld(Int_t &max_el, Int_t &min_el)
TRootEmbeddedCanvas * fWorkersPlot
TProofProgressMemoryPlot(TProofProgressDialog *d, Int_t w=700, Int_t h=300)
Main constructor.
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual ~TProofProgressMemoryPlot()
Destructor.
TGraph * DoMasterPlot(TProofLogElem *ple)
a master or submaster log display without meaningful labels for now
TRandom2 r(17)
SVector< double, 2 > v
Definition: Dict.h:5
TRootEmbeddedCanvas * fMasterPlot
TLine * l
Definition: textangle.C:4
Int_t ParseLine(TString l, Long64_t &v, Long64_t &r, Long64_t &e)
Extract from line &#39;l&#39; the virtual memory &#39;v&#39;, the resident memory &#39;r&#39; and the number of events &#39;e&#39;...
void DoPlot()
Draw the plot from the logs.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630
void Select(Int_t id)
actions of select all/clear all button
TProofProgressDialog * fDialog
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
Implementation of the PROOF session log handler.
Definition: TProofLog.h:38
void Clear(Option_t *=0)
Clear the canvases.