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
16class TMemStat: public TObject {
17private:
18 Bool_t fIsActive; // is object attached to MemStat
19
20public:
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
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
Bool_t fIsActive
Definition: TMemStat.h:18
virtual void Disable()
Disable memory statistics.
Definition: TMemStat.cxx:159
virtual ~TMemStat()
destructor
Definition: TMemStat.cxx:140
static void Close()
close the TMemStat manager
Definition: TMemStat.cxx:151
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
virtual void Enable()
Enable memory statistics.
Definition: TMemStat.cxx:167
static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char *fname="*")
Show results.
Definition: TMemStat.cxx:175
Mother of all ROOT objects.
Definition: TObject.h:37