//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;
fTimer=0;
}
//_____________________________________________________________________________
-AliPHOSMemoryWatcher::AliPHOSMemoryWatcher(AliPHOSMemoryWatcher& mw)
+AliMemoryWatcher::AliMemoryWatcher(AliMemoryWatcher& mw)
{
//copy ctor
fMAXSIZE = mw.fMAXSIZE ;
fTimer=0;
}
//_____________________________________________________________________________
-AliPHOSMemoryWatcher::~AliPHOSMemoryWatcher()
+AliMemoryWatcher::~AliMemoryWatcher()
{
// dtor
delete[] fVSIZE;
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 ) {
}
//_____________________________________________________________________________
TGraph*
-AliPHOSMemoryWatcher::GraphVSIZE(void)
+AliMemoryWatcher::GraphVSIZE(void)
{
// Fills the graph with the virtual memory sized used
TGraph* g = 0;
}
//_____________________________________________________________________________
TGraph*
-AliPHOSMemoryWatcher::GraphRSSIZE(void)
+AliMemoryWatcher::GraphRSSIZE(void)
{
// Fills the graph with the real memory sized used
TGraph* g = 0;
}
//_____________________________________________________________________________
TGraph*
-AliPHOSMemoryWatcher::GraphTIME(void)
+AliMemoryWatcher::GraphTIME(void)
{
// Fills the raph with the used CPU time
TGraph* g = 0;
}
//_____________________________________________________________________________
TH2*
-AliPHOSMemoryWatcher::Frame(void) const
+AliMemoryWatcher::Frame(void) const
{
//creates the frame histo in which the graphs will be plotted
Double_t xmin=1E30;
}
//_____________________________________________________________________________
void
-AliPHOSMemoryWatcher::Write(void)
+AliMemoryWatcher::Write(void)
{
// Stores the graphs in a file
if ( GraphVSIZE() ) GraphVSIZE()->Write("VSIZE",TObject::kOverwrite);