Logo ROOT  
Reference Guide
TMemStat.h
Go to the documentation of this file.
1 // @(#)root/memstat:$Id$
2 // Author: Anar Manafov (A.Manafov@gsi.de) 2008-03-02
3 
4 /*************************************************************************
5 * Copyright (C) 1995-2010, 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 #ifndef ROOT_TMemStat
12 #define ROOT_TMemStat
13 
14 #include "TObject.h"
15 
16 class TMemStat: public TObject {
17 private:
18  Bool_t fIsActive; // is object attached to MemStat
19 
20 public:
21  TMemStat(Option_t* option = "read", Int_t buffersize=10000, Int_t maxcalls=5000000);
22  virtual ~TMemStat();
23  static void Close();
24  virtual void Disable();
25  virtual void Enable();
26  static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char* fname="*");
27 
28  ClassDef(TMemStat, 0) // a user interface class of MemStat
29 };
30 
31 #endif
TMemStat::Disable
virtual void Disable()
Disable memory statistics.
Definition: TMemStat.cxx:159
bool
TMemStat::Show
static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char *fname="*")
Show results.
Definition: TMemStat.cxx:175
update
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
Definition: RooAdaptiveGaussKronrodIntegrator1D.cxx:652
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TMemStat::TMemStat
TMemStat(Option_t *option="read", Int_t buffersize=10000, Int_t maxcalls=5000000)
Supported options: "gnubuiltin" - if declared, then MemStat will use gcc build-in function,...
Definition: TMemStat.cxx:110
TMemStat::Close
static void Close()
close the TMemStat manager
Definition: TMemStat.cxx:151
Double_t
double Double_t
Definition: RtypesCore.h:59
TMemStat
Definition: TMemStat.h:16
TObject.h
TMemStat::fIsActive
Bool_t fIsActive
Definition: TMemStat.h:24
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMemStat::Enable
virtual void Enable()
Enable memory statistics.
Definition: TMemStat.cxx:167
TMemStat::~TMemStat
virtual ~TMemStat()
destructor
Definition: TMemStat.cxx:140
int