-
- Downloads
From Marian Ivanov and Anar Manafov:
Introduce a new package memstat for visualization of the memory usage. This package is expected to evolve in the coming hours/days. Principle: Hook functions for alloc and free are used. All calls to alloc (new) and free (delete) are catched and the statistical information is collected. The information is collected per stack trace (Unique identifier and per functions). Following informations are collected as function of time: Total number of allocations Total allocation size Allocation count Allocation size How to use it: Create memstat object TMemStat memstat(autoStamSize=10000, autoStampCount=1000); autoStamSize - The increase - decrease of size of memory after which stamps are generated autoStampCount - The increase - decrease of memory allocation counter after which stamps are generated User request for adding the named memory stamp is supported. memstat.AddStamp("mystamp") The file "memstat.root" is created after destruction of object. This class supports following functions for standard user: constructor - TMemStat memstat(filename) Report Draw SelectCode(libname, functionname) SelectStack() The various format options to draw a Graph can be accessed calling TMemStat memstat; memstat.Report("?") More info is available in the classes documentation. Note that this new package is currently available on Linux systems. It is not enabled by default. To enable it do ./configure --enable-memstat git-svn-id: http://root.cern.ch/svn/root/trunk@24338 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- misc/memstat/Module.mk 101 additions, 0 deletionsmisc/memstat/Module.mk
- misc/memstat/inc/LinkDef.h 26 additions, 0 deletionsmisc/memstat/inc/LinkDef.h
- misc/memstat/inc/LinkDefGUI.h 14 additions, 0 deletionsmisc/memstat/inc/LinkDefGUI.h
- misc/memstat/inc/TMemStat.h 125 additions, 0 deletionsmisc/memstat/inc/TMemStat.h
- misc/memstat/inc/TMemStatDepend.h 48 additions, 0 deletionsmisc/memstat/inc/TMemStatDepend.h
- misc/memstat/inc/TMemStatDrawDlg.h 52 additions, 0 deletionsmisc/memstat/inc/TMemStatDrawDlg.h
- misc/memstat/inc/TMemStatHelpers.h 62 additions, 0 deletionsmisc/memstat/inc/TMemStatHelpers.h
- misc/memstat/inc/TMemStatInfo.h 227 additions, 0 deletionsmisc/memstat/inc/TMemStatInfo.h
- misc/memstat/inc/TMemStatManager.h 133 additions, 0 deletionsmisc/memstat/inc/TMemStatManager.h
- misc/memstat/inc/TMemStatResource.h 29 additions, 0 deletionsmisc/memstat/inc/TMemStatResource.h
- misc/memstat/inc/TMemViewerGUI.h 90 additions, 0 deletionsmisc/memstat/inc/TMemViewerGUI.h
- misc/memstat/src/TMemStat.cxx 1313 additions, 0 deletionsmisc/memstat/src/TMemStat.cxx
- misc/memstat/src/TMemStatDepend.cxx 211 additions, 0 deletionsmisc/memstat/src/TMemStatDepend.cxx
- misc/memstat/src/TMemStatDrawDlg.cxx 240 additions, 0 deletionsmisc/memstat/src/TMemStatDrawDlg.cxx
- misc/memstat/src/TMemStatHelpers.cxx 51 additions, 0 deletionsmisc/memstat/src/TMemStatHelpers.cxx
- misc/memstat/src/TMemStatInfo.cxx 294 additions, 0 deletionsmisc/memstat/src/TMemStatInfo.cxx
- misc/memstat/src/TMemStatManager.cxx 645 additions, 0 deletionsmisc/memstat/src/TMemStatManager.cxx
- misc/memstat/src/TMemViewerGUI.cxx 418 additions, 0 deletionsmisc/memstat/src/TMemViewerGUI.cxx
Loading
Please register or sign in to comment