Log of /trunk/misc/memstat/inc/TMemStatMng.h
Parent Directory
Revision
36382 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 20 12:27:40 2010 UTC (4 years, 3 months ago) by
brun
File length: 4991 byte(s)
Diff to
previous 35660
Add a new control argument to TMemStat
// When TMemStat is active it recors every call to malloc/free in a ROOT Tree.
// You must be careful when running jobs with many millions (or more) of calls
// to malloc/free because the generated Tree may become very large.
// The TMemStat constructor TMemStat(const char* system, Int_t buffersize, Int_t maxcalls)
// has its 3 arguments optional:
// -system refers to the internal algorithm to compute the back traces.
// the recommended value is "gnubuiltin"
// -buffersize is the number of calls to malloc or free that can be stored in one memory buffer.
// when the buffer is full, the calls to malloc/free pointing to the same location
// are eliminated and not written to the final Tree. The default value 100000
// is such that between 50 and 90% of the calls are eliminated depending on the application.
// You can set buffersize <=1 to keep every single call to malloc/free.
// -maxcalls can set a limit for the maximum number of calls to be registered in the Tree.
// The default value is 5000000.
// The 3 arguments can be set in $ROOTSYS/etc/system.rootrc
// Root.TMemStat.system gnubuiltin
// Root.TMemStat.buffersize 100000
// Root.TMemStat.maxcalls 5000000
Revision
35660 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 23 14:02:09 2010 UTC (4 years, 4 months ago) by
brun
File length: 4399 byte(s)
Diff to
previous 35571
The class TMemStat can now be controlled via system.rootrc by activating
Root.TMemStat 1
This way any existing ROOT application becomes trivial to run instrumented
with TMemStat.
Revision
35571 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 22 11:47:22 2010 UTC (4 years, 4 months ago) by
anar
File length: 4260 byte(s)
Diff to
previous 34371
The first step of optimizations:
- remove string digests (cost too much)
- use a simple pre-caching of digests and ids
- cosmetic changes
Revision
34371 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 9 20:41:23 2010 UTC (4 years, 6 months ago) by
anar
File length: 3614 byte(s)
Diff to
previous 34345
Save a system info to the tree header.
Currently I am saving TNamed with name="SysInfo" and title="<build node info> | <build compiler version> | <debug flags> <opt. flags>"
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.