Log of /trunk/misc/memstat/src/TMemStatMng.cxx
Parent Directory
Revision
44507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by
axel
File length: 15057 byte(s)
Diff to
previous 36990
Remove
using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.
Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.
Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.
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: 14128 byte(s)
Diff to
previous 35722
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: 11636 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: 11208 byte(s)
Diff to
previous 35404
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: 10024 byte(s)
Diff to
previous 34368
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>"
Revision
34368 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 9 18:34:36 2010 UTC (4 years, 6 months ago) by
anar
File length: 9589 byte(s)
Diff to
previous 34345
memstat's output file name now hase the following form.
"memstat_PID.root", where "PID" is a process ID where TMemStat was called from.
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.