00001 // @(#)root/memstat:$Id: TMemStat.h 36382 2010-10-20 12:27:40Z brun $ 00002 // Author: Anar Manafov (A.Manafov@gsi.de) 2008-03-02 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2010, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 #ifndef ROOT_TMemStat 00012 #define ROOT_TMemStat 00013 00014 class TMemStat: public TObject { 00015 private: 00016 Bool_t fIsActive; // is object attached to MemStat 00017 00018 public: 00019 TMemStat(Option_t* option = "read", Int_t buffersize=10000, Int_t maxcalls=5000000); 00020 virtual ~TMemStat(); 00021 static void Close(); 00022 virtual void Disable(); 00023 virtual void Enable(); 00024 static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char* fname="*"); 00025 00026 ClassDef(TMemStat, 0) // a user interface class of MemStat 00027 }; 00028 00029 #endif