]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
AliPHOSMemoryWatcher moved to STEER and renamed as AliMemoryWatcher
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Mar 2003 13:15:40 +0000 (13:15 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Mar 2003 13:15:40 +0000 (13:15 +0000)
PHOS/PHOSLinkDef.h
PHOS/libPHOS.pkg
STEER/AliMemoryWatcher.cxx [moved from PHOS/AliPHOSMemoryWatcher.cxx with 92% similarity]
STEER/AliMemoryWatcher.h [moved from PHOS/AliPHOSMemoryWatcher.h with 84% similarity]
STEER/STEERLinkDef.h
STEER/libSTEER.pkg

index 57989cc2bb26fedfc730b96825c9397d8a28ba63..acbd677d491223d9c2b882f288a813cf4d888c8d 100644 (file)
@@ -51,7 +51,6 @@
 #pragma link C++ class AliPHOSClusterizerv2+;
 #pragma link C++ class AliPHOSEvalRecPoint+;
 #pragma link C++ class AliPHOSPIDv1+;
-#pragma link C++ class AliPHOSMemoryWatcher+;
 #pragma link C++ class AliPHOSRaw2Digits+;
 #pragma link C++ class AliPHOSBeamTestEvent+;
 #pragma link C++ class AliPHOSCalibrManager+;
index acedb33d535f204284bc61496b317f82bbb73d74..c5dda75b997525ed2771c3980105a1b94522c047 100644 (file)
@@ -21,7 +21,7 @@ SRCS          =    AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx \
                  AliPHOSQAObjectCheckable.cxx AliPHOSQAChecker.cxx AliPHOSQAMeanChecker.cxx AliPHOSQAAlarm.cxx \
                  AliPHOSIhepAnalyze.cxx AliPHOSEvalRecPoint.cxx \
                  AliPHOSRecManager.cxx AliPHOSRecCpvManager.cxx AliPHOSRecEmcManager.cxx \
-                 AliPHOSClusterizerv2.cxx AliPHOSPIDv1.cxx AliPHOSMemoryWatcher.cxx \
+                 AliPHOSClusterizerv2.cxx AliPHOSPIDv1.cxx \
                 AliPHOSRaw2Digits.cxx AliPHOSBeamTestEvent.cxx \
                  AliPHOSCalibrManager.cxx \
                 AliPHOSConTableDB.cxx AliPHOSCalibrator.cxx\
@@ -35,4 +35,3 @@ DHDR= PHOSLinkDef.h
 
 
 
-
similarity index 92%
rename from PHOS/AliPHOSMemoryWatcher.cxx
rename to STEER/AliMemoryWatcher.cxx
index 15e94276a70453abaddf85ea79e0c042281e4990..7134d17903d439dcb716589b8b64c29619fb5c17 100644 (file)
@@ -17,7 +17,7 @@
 //Basic Memory Leak utility.    
 //     You can use this tiny class to *see* if your program is leaking.
 //     Usage:
-//     AliPHOSMemoryWatcher memwatcher;
+//     AliMemoryWatcher memwatcher;
 //     some program loop on events here {
 //       if ( nevents % x == 0 ) 
 //       {
 // --- std system ---
 class assert ; 
 // --- AliRoot header files ---
-#include "AliPHOSMemoryWatcher.h"
+#include "AliMemoryWatcher.h"
 // --- ROOT system ---
 #include "TSystem.h"
 #include "TGraph.h"
 #include "TH2.h"
 #include "TStopwatch.h"
 
-ClassImp(AliPHOSMemoryWatcher)
+ClassImp(AliMemoryWatcher)
 
 //_____________________________________________________________________________
-AliPHOSMemoryWatcher::AliPHOSMemoryWatcher(UInt_t maxsize)
+AliMemoryWatcher::AliMemoryWatcher(UInt_t maxsize)
 {
   //ctor
   fMAXSIZE=maxsize;
@@ -70,7 +70,7 @@ AliPHOSMemoryWatcher::AliPHOSMemoryWatcher(UInt_t maxsize)
   fTimer=0;
 }
 //_____________________________________________________________________________
-AliPHOSMemoryWatcher::AliPHOSMemoryWatcher(AliPHOSMemoryWatcher& mw)
+AliMemoryWatcher::AliMemoryWatcher(AliMemoryWatcher& mw)
 {
   //copy ctor
   fMAXSIZE = mw.fMAXSIZE ;
@@ -85,7 +85,7 @@ AliPHOSMemoryWatcher::AliPHOSMemoryWatcher(AliPHOSMemoryWatcher& mw)
   fTimer=0;   
 }
 //_____________________________________________________________________________
-AliPHOSMemoryWatcher::~AliPHOSMemoryWatcher()
+AliMemoryWatcher::~AliMemoryWatcher()
 {
   // dtor
   delete[] fVSIZE;
@@ -95,7 +95,7 @@ AliPHOSMemoryWatcher::~AliPHOSMemoryWatcher()
   delete fTimer;
 }
 //_____________________________________________________________________________
-void AliPHOSMemoryWatcher::Watch(Int_t x)
+void AliMemoryWatcher::Watch(Int_t x)
 {
   // Sets the point where CPU parameters have to be monitored
   if ( !fDisabled && fSize < fMAXSIZE ) {
@@ -128,7 +128,7 @@ void AliPHOSMemoryWatcher::Watch(Int_t x)
 }
 //_____________________________________________________________________________
 TGraph*
-AliPHOSMemoryWatcher::GraphVSIZE(void)
+AliMemoryWatcher::GraphVSIZE(void)
 {
   // Fills the graph with the virtual memory sized used
   TGraph* g = 0;
@@ -144,7 +144,7 @@ AliPHOSMemoryWatcher::GraphVSIZE(void)
 }
 //_____________________________________________________________________________
 TGraph*
-AliPHOSMemoryWatcher::GraphRSSIZE(void)
+AliMemoryWatcher::GraphRSSIZE(void)
 {
   // Fills the graph with the real memory sized used
   TGraph* g = 0;
@@ -160,7 +160,7 @@ AliPHOSMemoryWatcher::GraphRSSIZE(void)
 }
 //_____________________________________________________________________________
 TGraph*
-AliPHOSMemoryWatcher::GraphTIME(void)
+AliMemoryWatcher::GraphTIME(void)
 {
   // Fills the raph with the used CPU time
   TGraph* g = 0;
@@ -176,7 +176,7 @@ AliPHOSMemoryWatcher::GraphTIME(void)
 }
 //_____________________________________________________________________________
 TH2*
-AliPHOSMemoryWatcher::Frame(void) const
+AliMemoryWatcher::Frame(void) const
 {
   //creates the frame histo in which the graphs will be plotted 
   Double_t xmin=1E30;
@@ -197,7 +197,7 @@ AliPHOSMemoryWatcher::Frame(void) const
 }
 //_____________________________________________________________________________
 void 
-AliPHOSMemoryWatcher::Write(void)
+AliMemoryWatcher::Write(void)
 {
   // Stores the graphs in a file 
   if ( GraphVSIZE() ) GraphVSIZE()->Write("VSIZE",TObject::kOverwrite);
similarity index 84%
rename from PHOS/AliPHOSMemoryWatcher.h
rename to STEER/AliMemoryWatcher.h
index eb6d05363043e24212a5073117db47f88d74c8b8..45d065f95cc41ce7877bc93860a0efdd84e284fe 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef AliPHOSMEMORYWATCHER_H
-#define AliPHOSMEMORYWATCHER_H
+#ifndef ALIMEMORYWATCHER_H
+#define ALIMEMORYWATCHER_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice     */
 /* $Id$ */
@@ -8,7 +8,7 @@
     
     You can use this tiny class to *see* if your program is leaking.
     Usage:
-    AliPHOSMemoryWatcher memwatcher;
+    AliMemoryWatcher memwatcher;
     some program loop on events here {
       if ( nevents % x == 0 ) 
       {
 class TH2;
 class TGraph;
 class TStopwatch;
-class AliPHOSMemoryWatcher : public TObject 
+class AliMemoryWatcher : public TObject 
 {
 public:
-  AliPHOSMemoryWatcher(UInt_t maxsize=10000);
-  AliPHOSMemoryWatcher(AliPHOSMemoryWatcher& mw);
-  AliPHOSMemoryWatcher(const AliPHOSMemoryWatcher & watcher) {
+  AliMemoryWatcher(UInt_t maxsize=10000);
+  AliMemoryWatcher(AliMemoryWatcher& mw);
+  AliMemoryWatcher(const AliMemoryWatcher & watcher) {
     // copy ctor: no implementation yet
     Fatal("cpy ctor", "not implemented") ;
   }
-  ~AliPHOSMemoryWatcher() ;
+  ~AliMemoryWatcher() ;
   void Watch(Int_t x);
   
   UInt_t Size(void) const { return fSize; }
@@ -62,7 +62,7 @@ public:
   TGraph* GraphTIME(void);
   TH2* Frame(void) const ;
   void Write(void);
-  AliPHOSMemoryWatcher & operator = (const AliPHOSMemoryWatcher &) { return *this; } 
+  AliMemoryWatcher & operator = (const AliMemoryWatcher &) { return *this; } 
 private:
   Int_t fPID;          // PID of the process to watch
   char fCmd[1024];     // the command sent to the system to retrieve things ("ps .....")
@@ -75,7 +75,7 @@ private:
   TStopwatch* fTimer;  // the chronometer
   Bool_t fDisabled;    // to switch on/off the monitoring
 
-  ClassDef(AliPHOSMemoryWatcher,1) // General purpose memory watcher
+  ClassDef(AliMemoryWatcher,1) // General purpose memory watcher
 
 } ;
 #endif
index 4b0039bf9a48c360e5acc4cdfc825815b064557e..8f5e33b695940f7e109d4f7d68ab9f83ae05191b 100644 (file)
@@ -62,6 +62,7 @@
 #pragma link C++ class  AliTrackMap+;
 #pragma link C++ class  AliTrackMapper+;
 #pragma link C++ class  AliCollisionGeometry+;
+#pragma link C++ class  AliMemoryWatcher+;
 #endif
 
 
index fa685fd2b895a19e19ce5988f2c0042400922b99..dc2db5b57942eb80e2ebe1b45967f46fec2d3005 100644 (file)
@@ -14,7 +14,8 @@ AliGenEventHeader.cxx AliStack.cxx AliConfig.cxx \
 AliRunDigitizer.cxx AliDigitizer.cxx AliStream.cxx \
 AliMergeCombi.cxx AliMagFMaps.cxx AliFieldMap.cxx \
 AliGausCorr.cxx AliTrackReference.cxx AliESD.cxx \
-AliTrackMap.cxx AliTrackMapper.cxx AliCollisionGeometry.cxx
+AliTrackMap.cxx AliTrackMapper.cxx AliCollisionGeometry.cxx \
+AliMemoryWatcher.cxx
 
 HDRS:= $(SRCS:.cxx=.h)