Logo ROOT   6.12/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 #include "TGFrame.h"
27 
28 class TGListBox;
29 class TGTextButton;
32 class TGSplitButton;
33 class TProofLog;
34 class TMultiGraph;
35 class TGraph;
36 class TProofLogElem;
37 
39 
40  protected:
44  TGSplitButton *fAllWorkers; // display all workers button
52 
53  TGListBox* BuildLogList(TGFrame *parent);
56  TGraph* DoAveragePlot(Int_t &max_el, Int_t &min_el);
57  TGraph* DoAveragePlotOld(Int_t &max_el, Int_t &min_el);
58 
60 
61  public:
63  virtual ~TProofProgressMemoryPlot();
64 
65  void Clear(Option_t * = 0);
66  void DoPlot();
67  void Select(Int_t id);
68 
69  ClassDef(TProofProgressMemoryPlot,0) //PROOF progress memory plots
70 };
71 
72 #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:35
Basic string class.
Definition: TString.h:125
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:320
virtual ~TProofProgressMemoryPlot()
Destructor.
TGraph * DoMasterPlot(TProofLogElem *ple)
a master or submaster log display without meaningful labels for now
ROOT::R::TRInterface & r
Definition: Object.C:4
SVector< double, 2 > v
Definition: Dict.h:5
TRootEmbeddedCanvas * fMasterPlot
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
auto * l
Definition: textangle.C:4
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
Implementation of the PROOF session log handler.
Definition: TProofLog.h:32
void Clear(Option_t *=0)
Clear the canvases.