Logo ROOT   6.07/09
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 #ifndef ROOT_TObject
15 #include "TObject.h"
16 #endif
17 
18 class TMemStat: public TObject {
19 private:
20  Bool_t fIsActive; // is object attached to MemStat
21 
22 public:
23  TMemStat(Option_t* option = "read", Int_t buffersize=10000, Int_t maxcalls=5000000);
24  virtual ~TMemStat();
25  static void Close();
26  virtual void Disable();
27  virtual void Enable();
28  static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char* fname="*");
29 
30  ClassDef(TMemStat, 0) // a user interface class of MemStat
31 };
32 
33 #endif
static void Close()
close the TMemStat manager
Definition: TMemStat.cxx:151
const char Option_t
Definition: RtypesCore.h:62
static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char *fname="*")
Show results.
Definition: TMemStat.cxx:175
virtual void Enable()
Enable memory statistics.
Definition: TMemStat.cxx:167
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual ~TMemStat()
destructor
Definition: TMemStat.cxx:140
virtual void Disable()
Disable memory statistics.
Definition: TMemStat.cxx:159
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
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
double Double_t
Definition: RtypesCore.h:55
Mother of all ROOT objects.
Definition: TObject.h:44
Bool_t fIsActive
Definition: TMemStat.h:20